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 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: