[Python-checkins] peps: PEP 418: Make it more explicit than realtime does include time elapsed during

victor.stinner python-checkins at python.org
Thu Apr 12 01:43:57 CEST 2012


http://hg.python.org/peps/rev/b6cd7b9f8dc1
changeset:   4230:b6cd7b9f8dc1
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Thu Apr 12 01:43:22 2012 +0200
summary:
  PEP 418: Make it more explicit than realtime does include time elapsed during
sleep, whereas process time does not.

files:
  pep-0418.txt |  32 ++++++++++++++++----------------
  1 files changed, 16 insertions(+), 16 deletions(-)


diff --git a/pep-0418.txt b/pep-0418.txt
--- a/pep-0418.txt
+++ b/pep-0418.txt
@@ -811,15 +811,15 @@
 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 @@
 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:
 

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list