TIMER |
TIMER seconds
Activates a timer every specified second. Note that second is specified as a floating point number and can be less than a second. The granularity depends on the OS.
Example:
ON TIMER GOTO _Timer
' Activate timer routine every second TIMER 1
' Print 100 messages, one every 10th of a second FOR i = 1 TO 100 SLEEP 0.1 PRINT "Kalle... ";i, NEXT i
_Done: ' Disable timer TIMER 0
END
' Timer Routine _Timer: PRINT "Timer Kicked In !", RESUME NEXT
|