Archived

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

Pausing, time, etc.

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

How would I go about making a delay between two things? I.E. make a two second delay before the program prints a string. I''d prefer using that timeGetTime() stuff.

Share this post


Link to post
Share on other sites
If you''re not worried about Locking use Sleep (as Dactylos pointed out) or use one of these (since you said you wanted timeGetTime):
  
// Method 1

DWORD Final = timeGetTime() + Length;
while(timeGetTime() < Final);
// Method 2

DWORD Final = timeGetTime() + Length;
while(timeGetTime() < Final) Sleep(Whatever);


[Resist Windows XP''s Invasive Production Activation Technology!]

Share this post


Link to post
Share on other sites