From e33c2a9138be44650038f69a5aac60914c263a3a Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 12 Apr 2012 22:42:11 +0200 Subject: [PATCH] PEP 418: On Windows, clock() does include time elapsed during a sleep --- pep-0418.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pep-0418.txt b/pep-0418.txt index d5c0a5b40..f1d3880da 100644 --- a/pep-0418.txt +++ b/pep-0418.txt @@ -1020,9 +1020,12 @@ Name Resolution Include sleep 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: ========================= ================ ===============