I am trying to add a timed delay in a C++ program, and was wondering if anyone has any suggestions on what I can try or information I can look at?
I wish I had more
In Win32:
#include Sleep(milliseconds);
In Unix:
#include unsigned int microsecond = 1000000; usleep(3 * microsecond);//sleeps for 3 second
sleep() only takes a number of seconds which is often too long.
sleep()