[Python-checkins] peps: PEP 418: On Windows, clock() does include time elapsed during a sleep
victor.stinner
python-checkins at python.org
Thu Apr 12 22:42:45 CEST 2012
http://hg.python.org/peps/rev/306517a9822b
changeset: 4235:306517a9822b
user: Victor Stinner <victor.stinner at gmail.com>
date: Thu Apr 12 22:42:11 2012 +0200
summary:
PEP 418: On Windows, clock() does include time elapsed during a sleep
files:
pep-0418.txt | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/pep-0418.txt b/pep-0418.txt
--- a/pep-0418.txt
+++ b/pep-0418.txt
@@ -1020,9 +1020,12 @@
GetProcessTimes() 100 ns No
CLOCK_PROCESS_CPUTIME_ID 1 ns No
getrusage() 1 µs No
-clock() \- No
+clock() \- No (*)
========================= =============== =============
+(*) On Windows, clock() does include time elapsed during a sleep. It does not
+on other operating systems.
+
Examples of clock precision on x86_64:
========================= ================ ===============
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list