PEP 418: Make it more explicit than realtime does include time elapsed during
sleep, whereas process time does not.
This commit is contained in:
parent
e830be9f6e
commit
288203ec0e
32
pep-0418.txt
32
pep-0418.txt
|
@ -811,15 +811,15 @@ On Solaris, gethrtime() is the same as clock_gettime(CLOCK_MONOTONIC).
|
||||||
System time clocks
|
System time clocks
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
========================= ===============
|
========================= =============== =============
|
||||||
Name Resolution
|
Name Resolution Include sleep
|
||||||
========================= ===============
|
========================= =============== =============
|
||||||
CLOCK_REALTIME 1 ns
|
CLOCK_REALTIME 1 ns Yes
|
||||||
GetSystemTimeAsFileTime 100 ns
|
GetSystemTimeAsFileTime 100 ns Yes
|
||||||
gettimeofday() 1 µs
|
gettimeofday() 1 µs Yes
|
||||||
ftime() 1 ms
|
ftime() 1 ms Yes
|
||||||
time() 1 sec
|
time() 1 sec Yes
|
||||||
========================= ===============
|
========================= =============== =============
|
||||||
|
|
||||||
Examples of clock precision on x86_64:
|
Examples of clock precision on x86_64:
|
||||||
|
|
||||||
|
@ -885,13 +885,13 @@ Process time
|
||||||
The process time cannot be set. It is not monotonic: the clocks stop while the
|
The process time cannot be set. It is not monotonic: the clocks stop while the
|
||||||
process is idle.
|
process is idle.
|
||||||
|
|
||||||
========================= ===============
|
========================= =============== =============
|
||||||
Name Resolution
|
Name Resolution Include sleep
|
||||||
========================= ===============
|
========================= =============== =============
|
||||||
GetProcessTimes() 100 ns
|
GetProcessTimes() 100 ns No
|
||||||
CLOCK_PROCESS_CPUTIME_ID 1 ns
|
CLOCK_PROCESS_CPUTIME_ID 1 ns No
|
||||||
clock() \-
|
clock() \- No
|
||||||
========================= ===============
|
========================= =============== =============
|
||||||
|
|
||||||
Examples of clock precision on x86_64:
|
Examples of clock precision on x86_64:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue