1/31/00
COM1100 Winter2000 Yuhong Yin
8
Sleep()
function
n
The
Sleep
function suspends the execution
of the current program for a specified
interval.
n
Syntax :
Sleep(sleep_time);
n
sleep time is in milliseconds (0.001 sec)
n
Sleep(1000);
// suspend for 1 second
n
Sleep(500);
// suspend for 0.5 second
n