Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pause program execution at runtime 1

Status
Not open for further replies.

Elliott3

Programmer
Sep 5, 2002
347
CA
Does anyone know how to pause program execution...in visual c++...I need to:
{
execute code;
-> pause for say 50 milliseconds;
execute more code;
}
 
Simply call

Sleep(50);

for sleeping in 50 mSec.
/JOlesen
 
(FYI)
Sleep is included in windows.h

Code:
#include <windows.h>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top