PEP 418: Move resolution and accuracy definitions to the Definition section
This commit is contained in:
parent
471e1412ec
commit
94d094d791
27
pep-0418.txt
27
pep-0418.txt
|
@ -214,6 +214,23 @@ Return a dictionary with the following keys:
|
|||
Definitions
|
||||
===========
|
||||
|
||||
Resolution
|
||||
----------
|
||||
|
||||
The resolution is the smallest difference between two timestamps supported by
|
||||
the format used by the clock. For example, clock_gettime() uses a timespec
|
||||
structure which has two integer fields, tv_sec and tv_nsec, so the resolution
|
||||
is 1 nanosecond.
|
||||
|
||||
Accuracy
|
||||
--------
|
||||
|
||||
The accuracy is the effective smallest difference of two timestamps of the
|
||||
clock. It does not reflect the stability the clock rate. For example,
|
||||
QueryPerformanceCounter() has a good accuracy but is known to not have a steady
|
||||
rate.
|
||||
|
||||
|
||||
Monotonic
|
||||
---------
|
||||
|
||||
|
@ -301,16 +318,6 @@ GetTickCount[64]() 1 ms No Include suspend time
|
|||
timeGetTime() 1 ms No ?
|
||||
========================= =============== ================ ====================
|
||||
|
||||
The resolution is the smallest difference between two timestamps
|
||||
supported by the format used by the clock. For example,
|
||||
clock_gettime() uses a timespec structure which has two integer
|
||||
fields, tv_sec and tv_nsec, so the resolution is 1 nanosecond.
|
||||
|
||||
The accuracy is the effective smallest difference of two timestamps of
|
||||
the clock. It does not reflect the stability the clock rate. For
|
||||
example, QueryPerformanceCounter() has a good accuracy but is known to
|
||||
not have a steady rate.
|
||||
|
||||
Examples of clock accuracy on x86_64:
|
||||
|
||||
========================= ================ ===============
|
||||
|
|
Loading…
Reference in New Issue