
MILLIS is a read-only pseudo variable that can be read by a program to query the internal free-running millisecond counter. When the module boots, that counter is set to zero and then keeps incrementing every 1/1000 second. Since the counter is a 32-bit integer, it will wrap around to zero after 49.71 days. Because the scripting language is only aware of signed integers, MILLIS wraps around to -1 after 24.86 days and then counts up to 2147483647 before it wraps again to -1. Please consider that if you're make long-time calculations using MILLIS.
Repeatedly output of the current counter value
OUTMODE -2 DO PRINT MILLIS LOOP
Because MILLIS is read-only, most attempts to change it will be rejected by the compiler or the runtime system.