PEP 418: Update time.get_clock_info() according to the implementation
This commit is contained in:
parent
83e5ef1646
commit
c50bbd6279
|
@ -86,7 +86,7 @@ Limitations:
|
|||
* time.monotonic() and time.perf_counter() may or may not be adjusted.
|
||||
For example, ``CLOCK_MONOTONIC`` is slewed on Linux, whereas
|
||||
``GetTickCount()`` is not adjusted on Windows.
|
||||
``time.get_clock_info('monotonic')['is_adjusted']`` can be used to check
|
||||
``time.get_clock_info('monotonic')['adjusted']`` can be used to check
|
||||
if the monotonic clock is adjusted or not.
|
||||
* No time.thread_time() function is proposed by this PEP because it is
|
||||
not needed by Python standard library nor a common asked feature.
|
||||
|
@ -119,8 +119,8 @@ Return a ``time.clock_info`` object which has the following attributes:
|
|||
* ``implementation`` (str): name of the underlying operating system
|
||||
function. Examples: ``"QueryPerformanceCounter()"``,
|
||||
``"clock_gettime(CLOCK_REALTIME)"``.
|
||||
* ``is_monotonic`` (bool): True if the clock cannot go backward.
|
||||
* ``is_adjusted`` (bool): True if the clock is adjusted (e.g. by a
|
||||
* ``monotonic`` (bool): True if the clock cannot go backward.
|
||||
* ``adjusted`` (bool): True if the clock can be adjusted (e.g. by a
|
||||
NTP daemon).
|
||||
* ``resolution`` (float): resolution in seconds of the clock.
|
||||
|
||||
|
|
Loading…
Reference in New Issue