From 288203ec0eece4a0cb8a2acc7ac5b2ac643332f4 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 12 Apr 2012 01:43:22 +0200 Subject: [PATCH] PEP 418: Make it more explicit than realtime does include time elapsed during sleep, whereas process time does not. --- pep-0418.txt | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pep-0418.txt b/pep-0418.txt index e312376d7..d266d599c 100644 --- a/pep-0418.txt +++ b/pep-0418.txt @@ -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: