SLEEP

The SLEEP special function pauses current LabLisp process, while other processes can perform their tasks, just like WAIT. It expects one argument that must evaluate to number - it will be number of seconds to wait. Accepts integer or float number and internally rounds to milliseconds. For non-positive numbers will not sleep - it treats negative time as zero sleep time.

(sleep 2)           ; sleeps at least 2 seconds

The timing will not be accurate, but the SLEEP will pause for at least the given time, it sets internal timer and checks it repeatedly. The sleeping is driven by the same mechanism as WAIT so the internal timer of SLEEP is checked only when the sleeping process is given control.

See WAIT for more information.