DelaySecs
Pauses the program for the specified amount of seconds.

This sub stops the program by the given amount of seconds with a precision of about 1/15th of second. Note that the TIMER function will reset after midnight; if that's the case, internally the routine will substract 86400 seconds (a whole day) to keep things OK.

 
SUB Delaysecs (secs!)

Now! = TIMER
o! = TIMER + secs!

DO WHILE TIMER < o!
IF Now! > TIMER THEN o! = o! - 86400
LOOP

END SUB


DelaySecs - page last edited 2003-04-02 20:46:42 by 200.83.0.201 (home) (edit)
Blast WIKI - by RoboticBoy - edited and tweaked for our evil purposes by Hexadecimal Disaster