SLEEP

SLEEP


SIN Index Level SORT
Syntax SLEEP {num.expression}
SLEEP {"time.expression"}
Category BASIC
Type Statement
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.
Options
See Also user exits, FlashBASIC sleep statements & functions RQM u307a u407a
Example 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.
Warnings
Compatibility D3 7.0 AP AP 6.1 R83
SIN Index Level SORT