• Advertisement

Archived

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

Need a Wait Function

This topic is 5979 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
It said it was undiclaired. I am using Win32 Consol.

Edited by - Squeejee on October 13, 2001 9:13:16 PM

Share this post


Link to post
Share on other sites

  • Advertisement