Jump to content
  • Advertisement
Sign in to follow this  
jakpandora

how do i do this?(simple question)

This topic is 5123 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
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);


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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!