mk90.basic.functions

Function TICKS

Read the OS RTC tick counter.

Syntax

TICKS

Returns

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 END

Limits and diagnostics

No parentheses. This counter is relative to OS initialization, not a date/time epoch or CPU-cycle counter.

Status-code reference.

See also

Expressions and precedence · Runtime