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:

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.