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!

Wait or a delay

Status
Not open for further replies.

matmil

Technical User
Mar 18, 2005
6
US
I am writing a win32 app and I need to delay or wait or pause for a given amount of time...

Does anyone know how to do this...

for (i=1;i<100;i++)
{
Wait or delay for 10 seconds
printf(&quot;.&quot;);
}

Cheers,
Matt
 
Try to use this:

#include <windows.h>
.....
...
for ( i = 1; i < 100; i++ )
{
Sleep(10000);
printf(&quot;.&quot;);
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top