Skip to main content
GameDev.net gamedev.net
🔒 Locked

Need a Wait Function

Started by Squeejee Oct 13, 2001 at 7:58 PM 3 replies 300+ views
Original Post
Squeejee
Squeejee
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! -----
-----
Dactylos
Dactylos
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)

Gladiator
Gladiator
Sleep( 3000 ); //3000ms = 3000/1000=3sec


hope this helps

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

..-=gLaDiAtOr=-..
Squeejee
Squeejee
It said it was undiclaired. I am using Win32 Consol.

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

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.