From: Michael Kerrisk Date: Mon, 21 Nov 2016 13:41:59 +0000 (+0100) Subject: timer_create.2: Document CLOCK_BOOTTIME X-Git-Tag: man-pages-4.09~220 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39c97bde31db1af7030846b83cf50823e3ce0cfa;p=thirdparty%2Fman-pages.git timer_create.2: Document CLOCK_BOOTTIME Signed-off-by: Michael Kerrisk --- diff --git a/man2/timer_create.2 b/man2/timer_create.2 index aec4ec2998..7dbb02e722 100644 --- a/man2/timer_create.2 +++ b/man2/timer_create.2 @@ -23,9 +23,6 @@ .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" -.\" FIXME Linux 2.6.39 adds CLOCK_BOOTTIME, which needs be documented -.\" Does this also affect timerfd_create()? -.\" .\" FIXME Linux 3.0 adds CLOCK_BOOTTIME_ALARM and CLOCK_REALTIME_ALARM, .\" which need be documented .\" Does this also affect timerfd_create()? @@ -84,6 +81,21 @@ A clock that measures (user and system) CPU time consumed by the calling thread. .\" The CLOCK_MONOTONIC_RAW that was added in 2.6.28 can't be used .\" to create a timer -- mtk, Feb 2009 +.TP +.BR CLOCK_BOOTTIME " (Since Linux 2.6.39)" +.\" commit 70a08cca1227dc31c784ec930099a4417a06e7d0 +Like +.BR CLOCK_MONOTONIC , +this is a monotonically increasing clock. +However, whereas the +.BR CLOCK_MONOTONIC +clock does not measure the time while a system is suspended, the +.BR CLOCK_BOOTTIME +clock does include the time during which the system is suspended. +This is useful for applications that need to be suspend-aware. +.BR CLOCK_REALTIME +is not suitable for such applications, since that clock is affected +by discontinuous changes to the system clock. .PP As well as the above values, .I clockid