Sleep

  VOID Sleep(dwMilliseconds)    
  DWORD dwMilliseconds;    

The execution of the current thread can be delayed for a specified interval of time with the Sleep function:

Parameters

dwMilliseconds

Specifies the relative time, in milliseconds, that the delay is to occur. A value of 0 specifies that the function will return immediately. A value of -1 specifies an infinite delay.

The Sleep function causes the current thread to enter a waiting state until the specified interval of time has passed.

See Also

WaitForSingleObject, WaitForMultipleObjects