PEP 418: Replace "Precision in Python" with "Python Resolution"
This commit is contained in:
parent
3c3c2f09d4
commit
464a098160
98
pep-0418.txt
98
pep-0418.txt
|
@ -930,26 +930,26 @@ timeGetTime() 1 ms No Yes ?
|
||||||
|
|
||||||
Examples of clock precision on x86_64:
|
Examples of clock precision on x86_64:
|
||||||
|
|
||||||
========================= ================ ========= ===================
|
========================= ================ ========= =================
|
||||||
Name Operating system Precision Precision in Python
|
Name Operating system Precision Python Resolution
|
||||||
========================= ================ ========= ===================
|
========================= ================ ========= =================
|
||||||
QueryPerformanceCounter Windows Seven 10 ns 10 ns
|
QueryPerformanceCounter Windows Seven 10 ns 10 ns
|
||||||
CLOCK_HIGHRES SunOS 5.11 2 ns 265 ns
|
CLOCK_HIGHRES SunOS 5.11 2 ns 265 ns
|
||||||
CLOCK_MONOTONIC Linux 3.0 1 ns 322 ns
|
CLOCK_MONOTONIC Linux 3.0 1 ns 322 ns
|
||||||
CLOCK_MONOTONIC_RAW Linux 3.3 1 ns 628 ns
|
CLOCK_MONOTONIC_RAW Linux 3.3 1 ns 628 ns
|
||||||
CLOCK_BOOTTIME 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
|
mach_absolute_time() Mac OS 10.6 1 ns 3 µs
|
||||||
CLOCK_MONOTONIC FreeBSD 8.2 11 ns 5 µs
|
CLOCK_MONOTONIC FreeBSD 8.2 11 ns 5 µs
|
||||||
CLOCK_MONOTONIC OpenBSD 5.0 10 ms 5 µs
|
CLOCK_MONOTONIC OpenBSD 5.0 10 ms 5 µs
|
||||||
CLOCK_UPTIME FreeBSD 8.2 11 ns 6 µ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.3 1 ms 1 ms
|
||||||
CLOCK_MONOTONIC_COARSE Linux 3.0 4 ms 4 ms
|
CLOCK_MONOTONIC_COARSE Linux 3.0 4 ms 4 ms
|
||||||
GetTickCount64() Windows Seven 16 ms 15 ms
|
GetTickCount64() Windows Seven 16 ms 15 ms
|
||||||
========================= ================ ========= ===================
|
========================= ================ ========= =================
|
||||||
|
|
||||||
The "Precision in Python" column was filled using the
|
The "Python Resolution" column was filled using the
|
||||||
`clock_precision.py
|
`clock_resolution.py
|
||||||
<http://hg.python.org/peps/file/tip/pep-0418/clock_precision.py>`_
|
<http://hg.python.org/peps/file/tip/pep-0418/clock_resolution.py>`_
|
||||||
program.
|
program.
|
||||||
|
|
||||||
mach_absolute_time
|
mach_absolute_time
|
||||||
|
@ -1185,23 +1185,23 @@ time() 1 sec Yes Yes
|
||||||
|
|
||||||
Examples of clock precision on x86_64:
|
Examples of clock precision on x86_64:
|
||||||
|
|
||||||
========================= ================ ========= ===================
|
========================= ================ ========= =================
|
||||||
Name Operating system Precision Precision in Python
|
Name Operating system Precision Python Resolution
|
||||||
========================= ================ ========= ===================
|
========================= ================ ========= =================
|
||||||
CLOCK_REALTIME SunOS 5.11 10 ms 238 ns
|
CLOCK_REALTIME SunOS 5.11 10 ms 238 ns
|
||||||
CLOCK_REALTIME Linux 3.0 1 ns 238 ns
|
CLOCK_REALTIME Linux 3.0 1 ns 238 ns
|
||||||
gettimeofday() Mac OS 10.6 1 µs 4 µs
|
gettimeofday() Mac OS 10.6 1 µs 4 µs
|
||||||
CLOCK_REALTIME FreeBSD 8.2 11 ns 6 µs
|
CLOCK_REALTIME FreeBSD 8.2 11 ns 6 µs
|
||||||
CLOCK_REALTIME OpenBSD 5.0 10 ms 5 µ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.3 1 ms 1 ms
|
||||||
CLOCK_REALTIME_COARSE Linux 3.0 4 ms 4 ms
|
CLOCK_REALTIME_COARSE Linux 3.0 4 ms 4 ms
|
||||||
GetSystemTimeAsFileTime() Windows Seven 16 ms 1 ms
|
GetSystemTimeAsFileTime() Windows Seven 16 ms 1 ms
|
||||||
ftime() Windows Seven \- 1 ms
|
ftime() Windows Seven \- 1 ms
|
||||||
========================= ================ ========= ===================
|
========================= ================ ========= =================
|
||||||
|
|
||||||
The "Precision in Python" column was filled using the
|
The "Python Resolution" column was filled using the
|
||||||
`clock_precision.py
|
`clock_resolution.py
|
||||||
<http://hg.python.org/peps/file/tip/pep-0418/clock_precision.py>`_
|
<http://hg.python.org/peps/file/tip/pep-0418/clock_resolution.py>`_
|
||||||
program.
|
program.
|
||||||
|
|
||||||
|
|
||||||
|
@ -1255,7 +1255,7 @@ clock() \- Yes on Windows, No otherwise No
|
||||||
Examples of clock precision on x86_64:
|
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_PROCESS_CPUTIME_ID Linux 3.3 1 ns 1 ns
|
||||||
CLOCK_PROF FreeBSD 8.2 10 ms 1 µs
|
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
|
clock() Windows Seven 1 ms 1 ms
|
||||||
========================= ================ ========= ===================
|
========================= ================ ========= ===================
|
||||||
|
|
||||||
The "Precision in Python" column was filled using the
|
The "Python Resolution" column was filled using the
|
||||||
`clock_precision.py
|
`clock_resolution.py
|
||||||
<http://hg.python.org/peps/file/tip/pep-0418/clock_precision.py>`_
|
<http://hg.python.org/peps/file/tip/pep-0418/clock_resolution.py>`_
|
||||||
program.
|
program.
|
||||||
|
|
||||||
Functions
|
Functions
|
||||||
|
@ -1330,17 +1330,17 @@ GetThreadTimes() 100 ns No ?
|
||||||
|
|
||||||
Examples of clock precision on x86_64:
|
Examples of clock precision on x86_64:
|
||||||
|
|
||||||
========================= ================ =============== ===================
|
========================= ================ =============== =================
|
||||||
Name Operating system Precision Precision in Python
|
Name Operating system Precision Python Resolution
|
||||||
========================= ================ =============== ===================
|
========================= ================ =============== =================
|
||||||
CLOCK_THREAD_CPUTIME_ID FreeBSD 8.2 1 µs 1 µs
|
CLOCK_THREAD_CPUTIME_ID FreeBSD 8.2 1 µs 1 µs
|
||||||
CLOCK_THREAD_CPUTIME_ID Linux 3.3 1 ns 649 ns
|
CLOCK_THREAD_CPUTIME_ID Linux 3.3 1 ns 649 ns
|
||||||
GetThreadTimes() Windows Seven 16 ms 16 ms
|
GetThreadTimes() Windows Seven 16 ms 16 ms
|
||||||
========================= ================ =============== ===================
|
========================= ================ =============== =================
|
||||||
|
|
||||||
The "Precision in Python" column was filled using the
|
The "Python Resolution" column was filled using the
|
||||||
`clock_precision.py
|
`clock_resolution.py
|
||||||
<http://hg.python.org/peps/file/tip/pep-0418/clock_precision.py>`_
|
<http://hg.python.org/peps/file/tip/pep-0418/clock_resolution.py>`_
|
||||||
program.
|
program.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue