+ 1
Can c++ be used for delay generation?
Just like embedded c can generate delay. Can C++ do?
3 Answers
+ 1
The windows.h header has the
Sleep(MILLISECONDS);
function, though as the header suggests it's only going to work on a Windows OS.
0
Win32: Sleep(milliseconds) is what you what
unix: usleep(microseconds) is what you want.
sleep() only takes a number of seconds which is often too long.
0
of course yes