Jump to content
  • Advertisement
Sign in to follow this  
jakpandora

how do i do this?(simple question)

This topic is 5036 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!