INtime SDK Help
Sleep, RtSleep (iwin32)
INtime SDK v7 > About INtime > Alternate APIs > iwin32 API > iwin32 API > Sleep, RtSleep (iwin32)

Suspends the current thread's execution for, at a minimum, the specified interval, expressed in milliseconds.

VOID Sleep(
    DWORD dwMilliseconds

VOID RtSleep(
    DWORD dwMilliseconds
);

Parameters

dwMilliseconds
Specifies the number of milliseconds to suspend execution.

A value of zero causes the thread to relinquish the remainder of its time slice to any other thread of equal priority that is ready to run. If no other threads of equal priority are ready to run, the function immediately returns, and the thread continues execution.

Remarks

A thread can relinquish the remainder of its time slice by calling this function with a sleep time of zero milliseconds.

Return Values

None.

Requirements

Versions Defined in Include Link to
INtime 3.0 intime/rt/include/iwin32.h
intime/rt/include/winbase.h
iwin32.h
windows.h
iwin32.lib

Note

See Also

RtSleepFt, iwin32 API, iwin32 Overview