PeP 418: Move the CLOCK_BOOTTIME paragraph

This commit is contained in:
Victor Stinner 2012-04-12 22:26:43 +02:00
parent e0a2434b9f
commit 6708f4231a
1 changed files with 7 additions and 7 deletions

View File

@ -730,8 +730,8 @@ an Intel CPU: `Different behaviour of mach_absolute_time() on i386/ppc
mach_absolute_time() has a resolution of 1 nanosecond.
CLOCK_MONOTONIC, CLOCK_MONOTONIC_RAW
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
CLOCK_MONOTONIC, CLOCK_MONOTONIC_RAW, CLOCK_BOOTTIME
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
CLOCK_MONOTONIC and CLOCK_MONOTONIC_RAW represent monotonic time since
some unspecified starting point. They cannot be set.
@ -766,6 +766,11 @@ CLOCK_MONOTONIC, but provides access to a raw hardware-based time that
is not subject to NTP adjustments. CLOCK_MONOTONIC_RAW requires Linux
2.6.28 or later.
Linux 2.6.39 and glibc 2.14 introduces a new clock: CLOCK_BOOTTIME.
CLOCK_BOOTTIME is idential to CLOCK_MONOTONIC, except that it also
includes any time spent in suspend. Read also `Waking systems from
suspend <http://lwn.net/Articles/429925/>`_ (March, 2011).
CLOCK_MONOTONIC stops while the machine is suspended.
``clock_gettime()`` fails if the system does not support the specified
@ -1139,11 +1144,6 @@ system spends in sleep; but it does not include time spent in
hibernation (ACPI S3 mode). If the system clock jumps backward,
CLOCK_MONOTONIC and CLOCK_MONOTONIC_RAW are not affected.
Linux 2.6.39 and glibc 2.14 introduces a new clock: CLOCK_BOOTTIME.
CLOCK_BOOTTIME is idential to CLOCK_MONOTONIC, except that it also
includes any time spent in suspend. Read also `Waking systems from
suspend <http://lwn.net/Articles/429925/>`_ (March, 2011).
Other operating systems
-----------------------