PEP 418: On Windows, clock() does include time elapsed during a sleep

This commit is contained in:
Victor Stinner 2012-04-12 22:42:11 +02:00
parent 6708f4231a
commit e33c2a9138
1 changed files with 4 additions and 1 deletions

View File

@ -1020,9 +1020,12 @@ Name Resolution Include sleep
GetProcessTimes() 100 ns No
CLOCK_PROCESS_CPUTIME_ID 1 ns No
getrusage() 1 µs No
clock() \- No
clock() \- No (*)
========================= =============== =============
(*) On Windows, clock() does include time elapsed during a sleep. It does not
on other operating systems.
Examples of clock precision on x86_64:
========================= ================ ===============