PEP 418: On Windows, clock() does include time elapsed during a sleep
This commit is contained in:
parent
6708f4231a
commit
e33c2a9138
|
@ -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:
|
||||
|
||||
========================= ================ ===============
|
||||
|
|
Loading…
Reference in New Issue