Another problem with SLEEP is that a key press can interrupt the delay.
Delay .5 '<<<<<<<<<<<< any number of seconds down to .05
LOOP UNTIL INKEY$ <> ""
SUB Delay (dlay!)
start! = TIMER
DO WHILE start! + dlay! >= TIMER
IF start! > TIMER THEN start! = start! - 86400
In QB64 _DELAY can be used to do the same thing down to .001 or one millisecond.
Return to Index