PEP 418: Make it more explicit than realtime does include time elapsed during

sleep, whereas process time does not.
This commit is contained in:
Victor Stinner 2012-04-12 01:43:22 +02:00
parent e830be9f6e
commit 288203ec0e
1 changed files with 16 additions and 16 deletions

View File

@ -811,15 +811,15 @@ On Solaris, gethrtime() is the same as clock_gettime(CLOCK_MONOTONIC).
System time clocks
------------------
========================= ===============
Name Resolution
========================= ===============
CLOCK_REALTIME 1 ns
GetSystemTimeAsFileTime 100 ns
gettimeofday() 1 µs
ftime() 1 ms
time() 1 sec
========================= ===============
========================= =============== =============
Name Resolution Include sleep
========================= =============== =============
CLOCK_REALTIME 1 ns Yes
GetSystemTimeAsFileTime 100 ns Yes
gettimeofday() 1 µs Yes
ftime() 1 ms Yes
time() 1 sec Yes
========================= =============== =============
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
process is idle.
========================= ===============
Name Resolution
========================= ===============
GetProcessTimes() 100 ns
CLOCK_PROCESS_CPUTIME_ID 1 ns
clock() \-
========================= ===============
========================= =============== =============
Name Resolution Include sleep
========================= =============== =============
GetProcessTimes() 100 ns No
CLOCK_PROCESS_CPUTIME_ID 1 ns No
clock() \- No
========================= =============== =============
Examples of clock precision on x86_64: