SLEEP - wait for a specified interval.

Alternate Entry Name: .SLEEP

Usage:

B:
   sleep( secs );
/* C users use C "sleep" */

Where:

secs
is the number of seconds to sleep.

Description:

SLEEP suspends the execution of the program for the given number of seconds. In TSS, the program may be awakened from such a "sleep" by hitting the "break" key.

GCOS8 does not guarantee that your program will sleep for exactly that number of seconds. External events may cause GCOS to wake it up before the time has elapsed, while swapping and memory contention may result in the program sleeping longer than expected.

Notes:

SLEEP automatically flushes the buffers of all interactive units (e.g. terminals). Therefore

sleep(0);

is an easy way to flush all interactive buffers.

Copyright © 1996, Thinkage Ltd.