Sleep

Suspend execution of the current thread for a specific amount of time.

void Sleep (long value);

Required Header
<process.h>

Return Value

None.

Parameters

value

  The number of milliseconds to sleep for

Remarks

The Sleep function causes the calling thread to sleep for the specified number of milliseconds. Other threads are not effected, other than by being allowed to run sooner than they normally would otherwise.

Process and Threads

See Also    _beginthread, _endthread, _syncthread