mk90.basic.functions
Function TICKS
Read the OS RTC tick counter.
Syntax
TICKSReturns
The 16-bit tick pattern, displayed as a signed integer when printed.
Behavior
Advances at a nominal 32 ticks per second and wraps modulo 65536. Printed values become negative after bit 15 is set. Modular differences are useful over intervals shorter than 32768 ticks.
Example
10 A=TICKS
20 WAIT 32
30 PRINT TICKS-A
40 ENDLimits and diagnostics
No parentheses. This counter is relative to OS initialization, not a date/time epoch or CPU-cycle counter.