No subject
Sun Nov 12 08:01:13 CET 2006
--
The Sleep function suspends the execution of the current thread
for a specified interval.
VOID Sleep(
DWORD cMilliseconds // sleep time in milliseconds
);
Parameters
cMilliseconds
Specifies the time, in milliseconds, for which 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 there are no other threads of equal priority ready to run, the function
returns immediately, and the thread continues execution.
A value of INFINITE causes an infinite delay.
Return Value
This function does not return a value.
Remarks
A thread can relinquish the remainder of its time slice by calling this
function with a sleep time of zero milliseconds.
--
I'm not sure whether time.sleep(0) will pass on a zero to win32 Sleep, but
it would seem reasonable. Int zero converts accurately to floating point zero
and back.
Regards,
Bengt Richter
More information about the Python-list
mailing list