I wrote a little console application, and I want it to pause for a certain number of seconds before the cycle (a while) starts again.
I'm working on Windows operating system.
On UNIX:
#include <unistd.h>
sleep(10); // 10 seconds
On Windows:
#include <windows.h>
Sleep(10000); // 10 seconds (10000 milliseconds)
Note the difference between sleep()
(UNIX) and Sleep()
(Windows).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With