Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Squeejee

Need a Wait Function

This topic is 6094 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 need a function that will wait about 3 seconds before going to the next line of code. Please state the include file that the function can be found in. Thanks! -----

Share this post


Link to post
Share on other sites
Advertisement
What operating system are you using?
If it is windows, call:

void Sleep(DWORD dwMilliseconds)

i.e. In your case with 3 seconds:
  
Sleep(3000); // wait for 3 seconds (3000 ms)

Share this post


Link to post
Share on other sites
Sleep( 3000 ); //3000ms = 3000/1000=3sec


hope this helps

-------------------------------
Did someone say "banana"?

..-=gLaDiAtOr=-..

Share this post


Link to post
Share on other sites

  • 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!