PEP 418: mach_absolute_time() doesn't include suspend time

This commit is contained in:
Victor Stinner 2012-04-11 00:58:33 +02:00
parent 6b47f7b960
commit fb28ab8af2
1 changed files with 5 additions and 1 deletions

View File

@ -314,7 +314,7 @@ gethrtime 1 ns No Yes Yes
CLOCK_HIGHRES 1 ns No Yes ? CLOCK_HIGHRES 1 ns No Yes ?
CLOCK_MONOTONIC 1 ns Slewed on Linux Yes No CLOCK_MONOTONIC 1 ns Slewed on Linux Yes No
CLOCK_MONOTONIC_RAW 1 ns No Yes No CLOCK_MONOTONIC_RAW 1 ns No Yes No
mach_absolute_time() 1 ns No ? ? mach_absolute_time() 1 ns No Yes No
QueryPerformanceCounter() \- No Yes ? QueryPerformanceCounter() \- No Yes ?
GetTickCount[64]() 1 ms No Yes Yes GetTickCount[64]() 1 ms No Yes Yes
timeGetTime() 1 ms No Yes ? timeGetTime() 1 ms No Yes ?
@ -832,6 +832,10 @@ is not affected by system clock update.
On OpenIndiana, CLOCK_MONOTONIC include time the system spends in sleep; On OpenIndiana, CLOCK_MONOTONIC include time the system spends in sleep;
sleep() is not affected by system clock update. sleep() is not affected by system clock update.
On Mac OS X, mach_absolute_time() include time the system spends in sleep;
sleep() is not affected by system clock update. Sleep is interrupted during
suspend.
Sleeping Sleeping
======== ========