PEP 418: Make it explicit than calling timeBeginPeriod() affects
WaitForSingleObject() and Sleep()
This commit is contained in:
parent
05d90f35a2
commit
471e1412ec
|
@ -509,9 +509,10 @@ days).
|
||||||
The default precision of the timeGetTime function can be five
|
The default precision of the timeGetTime function can be five
|
||||||
milliseconds or more, depending on the machine.
|
milliseconds or more, depending on the machine.
|
||||||
|
|
||||||
timeBeginPeriod() can be used to increase the precision of
|
timeBeginPeriod() can be used to increase the precision of timeGetTime() up to
|
||||||
timeGetTime() up to 1 millisecond, but it negatively affects power
|
1 millisecond, but it negatively affects power consumption. Calling
|
||||||
consumption.
|
timeBeginPeriod() also affects the granularity of some other timing calls, such
|
||||||
|
as CreateWaitableTimer(), WaitForSingleObject() and Sleep().
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue