how do i do this?(simple question)
how do I make the system temporarily pause for a second and then continue? isnt is sleep something? i cant seem to remeber for some reason.
yeah, its c++ and windows. sorry for not giving more details. so where one is, thats how many miliseconds it will wait?
Quote:Original post by jakpandora
yeah, its c++ and windows. sorry for not giving more details. so where one is, thats how many miliseconds it will wait?
Yes. Sleep(1000) will wait for about 1 second (the timer resolution isn't exactly 1 ms, rather 10ms and the Sleep() function waits at least the specified amount of time - could be a tad longer).
Quote:Original post by kingpinzs
In c++? In windows?
It is
Sleep(1);
Thats 1 millisecond you want Sleep(1000);
Quote:Original post by kingpinzs
In c++? In windows?
It is
Sleep(1);
win32 system: Sleep(1000) -> Suspend execution of current thread for 1000 milliseconds (=1sec)
Unix script/command line: sleep 1000
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement