From 464a098160888567d8e8ee6059f47eb57ff45230 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 24 Apr 2012 00:14:51 +0200 Subject: [PATCH] PEP 418: Replace "Precision in Python" with "Python Resolution" --- pep-0418.txt | 98 ++++++++++++++++++++++++++-------------------------- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/pep-0418.txt b/pep-0418.txt index c21eb5bc7..c8dfd9613 100644 --- a/pep-0418.txt +++ b/pep-0418.txt @@ -930,26 +930,26 @@ timeGetTime() 1 ms No Yes ? Examples of clock precision on x86_64: -========================= ================ ========= =================== -Name Operating system Precision Precision in Python -========================= ================ ========= =================== -QueryPerformanceCounter Windows Seven 10 ns 10 ns -CLOCK_HIGHRES SunOS 5.11 2 ns 265 ns -CLOCK_MONOTONIC Linux 3.0 1 ns 322 ns -CLOCK_MONOTONIC_RAW Linux 3.3 1 ns 628 ns -CLOCK_BOOTTIME Linux 3.3 1 ns 628 ns -mach_absolute_time() Mac OS 10.6 1 ns 3 µs -CLOCK_MONOTONIC FreeBSD 8.2 11 ns 5 µs -CLOCK_MONOTONIC OpenBSD 5.0 10 ms 5 µs -CLOCK_UPTIME FreeBSD 8.2 11 ns 6 µs -CLOCK_MONOTONIC_COARSE Linux 3.3 1 ms 1 ms -CLOCK_MONOTONIC_COARSE Linux 3.0 4 ms 4 ms -GetTickCount64() Windows Seven 16 ms 15 ms -========================= ================ ========= =================== +========================= ================ ========= ================= +Name Operating system Precision Python Resolution +========================= ================ ========= ================= +QueryPerformanceCounter Windows Seven 10 ns 10 ns +CLOCK_HIGHRES SunOS 5.11 2 ns 265 ns +CLOCK_MONOTONIC Linux 3.0 1 ns 322 ns +CLOCK_MONOTONIC_RAW Linux 3.3 1 ns 628 ns +CLOCK_BOOTTIME Linux 3.3 1 ns 628 ns +mach_absolute_time() Mac OS 10.6 1 ns 3 µs +CLOCK_MONOTONIC FreeBSD 8.2 11 ns 5 µs +CLOCK_MONOTONIC OpenBSD 5.0 10 ms 5 µs +CLOCK_UPTIME FreeBSD 8.2 11 ns 6 µs +CLOCK_MONOTONIC_COARSE Linux 3.3 1 ms 1 ms +CLOCK_MONOTONIC_COARSE Linux 3.0 4 ms 4 ms +GetTickCount64() Windows Seven 16 ms 15 ms +========================= ================ ========= ================= -The "Precision in Python" column was filled using the -`clock_precision.py -`_ +The "Python Resolution" column was filled using the +`clock_resolution.py +`_ program. mach_absolute_time @@ -1185,23 +1185,23 @@ time() 1 sec Yes Yes Examples of clock precision on x86_64: -========================= ================ ========= =================== -Name Operating system Precision Precision in Python -========================= ================ ========= =================== -CLOCK_REALTIME SunOS 5.11 10 ms 238 ns -CLOCK_REALTIME Linux 3.0 1 ns 238 ns -gettimeofday() Mac OS 10.6 1 µs 4 µs -CLOCK_REALTIME FreeBSD 8.2 11 ns 6 µs -CLOCK_REALTIME OpenBSD 5.0 10 ms 5 µs -CLOCK_REALTIME_COARSE Linux 3.3 1 ms 1 ms -CLOCK_REALTIME_COARSE Linux 3.0 4 ms 4 ms -GetSystemTimeAsFileTime() Windows Seven 16 ms 1 ms -ftime() Windows Seven \- 1 ms -========================= ================ ========= =================== +========================= ================ ========= ================= +Name Operating system Precision Python Resolution +========================= ================ ========= ================= +CLOCK_REALTIME SunOS 5.11 10 ms 238 ns +CLOCK_REALTIME Linux 3.0 1 ns 238 ns +gettimeofday() Mac OS 10.6 1 µs 4 µs +CLOCK_REALTIME FreeBSD 8.2 11 ns 6 µs +CLOCK_REALTIME OpenBSD 5.0 10 ms 5 µs +CLOCK_REALTIME_COARSE Linux 3.3 1 ms 1 ms +CLOCK_REALTIME_COARSE Linux 3.0 4 ms 4 ms +GetSystemTimeAsFileTime() Windows Seven 16 ms 1 ms +ftime() Windows Seven \- 1 ms +========================= ================ ========= ================= -The "Precision in Python" column was filled using the -`clock_precision.py -`_ +The "Python Resolution" column was filled using the +`clock_resolution.py +`_ program. @@ -1255,7 +1255,7 @@ clock() \- Yes on Windows, No otherwise No Examples of clock precision on x86_64: ========================= ================ ========= =================== -Name Operating system Precision Precision in Python +Name Operating system Precision Python Resolution ========================= ================ ========= =================== CLOCK_PROCESS_CPUTIME_ID Linux 3.3 1 ns 1 ns CLOCK_PROF FreeBSD 8.2 10 ms 1 µs @@ -1279,9 +1279,9 @@ GetProcessTimes() Windows Seven 16 ms 16 ms clock() Windows Seven 1 ms 1 ms ========================= ================ ========= =================== -The "Precision in Python" column was filled using the -`clock_precision.py -`_ +The "Python Resolution" column was filled using the +`clock_resolution.py +`_ program. Functions @@ -1330,17 +1330,17 @@ GetThreadTimes() 100 ns No ? Examples of clock precision on x86_64: -========================= ================ =============== =================== -Name Operating system Precision Precision in Python -========================= ================ =============== =================== -CLOCK_THREAD_CPUTIME_ID FreeBSD 8.2 1 µs 1 µs -CLOCK_THREAD_CPUTIME_ID Linux 3.3 1 ns 649 ns -GetThreadTimes() Windows Seven 16 ms 16 ms -========================= ================ =============== =================== +========================= ================ =============== ================= +Name Operating system Precision Python Resolution +========================= ================ =============== ================= +CLOCK_THREAD_CPUTIME_ID FreeBSD 8.2 1 µs 1 µs +CLOCK_THREAD_CPUTIME_ID Linux 3.3 1 ns 649 ns +GetThreadTimes() Windows Seven 16 ms 16 ms +========================= ================ =============== ================= -The "Precision in Python" column was filled using the -`clock_precision.py -`_ +The "Python Resolution" column was filled using the +`clock_resolution.py +`_ program.