how do i do this?(simple question)

Started by
5 comments, last by Jimmy Valavanis 19 years, 4 months ago
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.
______________________________My website: Quest Networks
Advertisement
In c++? In windows?

It is
Sleep(1);
yeah, its c++ and windows. sorry for not giving more details. so where one is, thats how many miliseconds it will wait?
______________________________My website: Quest Networks
Ya it is one milisecond.

look here

http://www.answerbag.com/c_view.php/323
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