2.1.25.74 Sleep


Description

It puts the application to a halt for the specified number of milliseconds.

Syntax

void Sleep( DWORD dwMilliseconds )

Parameters

dwMilliseconds
[input] the number of milliseconds to sleep.

Return

none

Examples

EX1

int    Sleep_ex1()
{
    out_str("Before Sleep");
    Sleep(1000);    // sleep for one second
    out_str("After Sleep");
    return 1;
}

Remark

See Also

Header to Include

origin.h

Reference