|Command||basic.sleep Statement/BASIC Program
Applicable release versions: AP, AP 6.1, R83
|Category||BASIC Program (486)|
|Description||places a process to sleep for a specific number of seconds, or, until a specific time.
The "sleep" time may be specified as a numeric expression, which indicates the number of seconds to "sleep", or as a "time.expression" in "military time" format (hh:mm:ss). If no argument is indicated, the process sleeps for one second. "rqm" and "sleep" are identical.
Releases 6.1.0 and above allow the specification of fractional seconds in the numeric expression. Also, a numeric expression of zero will cause the process to relinquish its time slice.
sleep 3600 This puts the process to "sleep" for one hour. until.wakeup.time = "08:00" sleep until.wakeup.time This puts the process to sleep, leaving a "wakeup call" for 8:00 a.m.