• Advertisement
Sign in to follow this  

how do i do this?(simple question)

This topic is 4823 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
yeah, its c++ and windows. sorry for not giving more details. so where one is, thats how many miliseconds it will wait?

Share this post


Link to post
Share on other sites
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).

Share this post


Link to post
Share on other sites
Quote:
Original post by kingpinzs
In c++? In windows?

It is
Sleep(1);


Thats 1 millisecond you want Sleep(1000);

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement