RQM Statement
Terminates the program's current timeslice, and causes the program to sleep for, or until, a specified time.
Syntax
[RQM || SLEEP] {wakeVal}
Syntax Elements
wakeVal An expression that evaluates to either:
-
The number of seconds to sleep, specified as an integer or as a fraction of a second. Decimal fractions greater than one are rounded to the nearest whole number.
Note
The sleep time is only approximate and may vary depending on what other programs are running.
-
A wakeup time specified in 24-hour format.
If wakeVal is omitted, the program sleeps for one second.
If wakeVal is zero, the program sleeps for approximately 10 milliseconds.
Examples
* PROGRAM SEGMENT TO SOUND TERMINAL BELL * FIVE TIMES * EQU BELL TO CHAR(7) FOR I=1 TO 5 PRINT BELL: RQM 2 NEXT I END
Sounds terminal bell five times, pausing 2 seconds so that the bell is heard as five discrete beeps.
RQM 0.5
Causes program to sleep for 0.5 seconds.
X = "13:22:56" SLEEP X
Program sleeps until 13:22:56 PM.
RQM 3.6
Causes program to sleep for 4 seconds.