Jump to content
  • Advertisement
Sign in to follow this  

Simple question about pausing for a few seconds

This topic is 4303 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

I want to pause my process for a few seconds but I'm not too sure of the syntax for doing this. I have looked in the help files and on MSDN but if I type pause in then a mountain of links come back. Can anyone help? I am using VC++ 2003 .Net on XP Pro.

Share this post


Link to post
Share on other sites
Advertisement
If you want to pause, and not do anything at all (Not even update the window), then use Sleep(delay) where delay is in milliseconds.

If you want to have the window updated too, then it's a bit more complicated since you probably don't want to respond to some window messages (like WM_COMMAND).

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!