
September 8th, 2002, 02:58 PM
|
 |
Banned ;)
|
|
Join Date: Nov 2001
Location: Woodland Hills, Los Angeles County, California, USA
|
|
|
Depends on your OS, but you're probably looking for the sleep() function. Please note that this function looks and works different depending upon your OS.
For Windows, it is spelled with the first letter capitalized and takes the time to sleep in milliseconds (i.e.)
#include <windows.h>
Sleep(milliseconds);
For *NIX systems, it is spelled in all lowercase and takes the time to sleep in seconds (i.e.)
#include <unistd.h>
sleep(seconds);
There's also a nanosleep() function in *NIX systems for smaller time intervals.
Hope this helps!
|