September 8th, 2002, 02:29 PM
Hi I know there is a function that waits like lets say we want the program to wait for 100 milliseconds you say ?(100) Can someone please help me? thanks
September 8th, 2002, 02:58 PM
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.)
For *NIX systems, it is spelled in all lowercase and takes the time to sleep in seconds (i.e.)
There's also a nanosleep() function in *NIX systems for smaller time intervals.
Hope this helps!
September 8th, 2002, 07:15 PM