How can I pause a program for a specific number number of seconds? I'm using MS Visual C 6.0.
Thanks.
Printable View
How can I pause a program for a specific number number of seconds? I'm using MS Visual C 6.0.
Thanks.
Sleep() as defined in windows.h
Include "windows.h" and use "Sleep()" - the Sleep function takes number of milliseconds, so you need to say "Sleep(1000)" to sleep for one second.
--
Mats
At first it wouldn't work, but then I realized I was typing sleep instead of Sleep.
Thanks for the help!