diff --git a/pep-0418.txt b/pep-0418.txt index 53703c35a..d5c0a5b40 100644 --- a/pep-0418.txt +++ b/pep-0418.txt @@ -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 `_ (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 `_ (March, 2011). - Other operating systems -----------------------