Archived

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

Drakon

Pausing, time, etc.

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