Archived

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

Squeejee

Need a Wait Function

Recommended Posts

Squeejee    122
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
Dactylos    122
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