LKML Archive on
help / color / mirror / Atom feed
* [RFC PATCH manpages] clock_getres.2: document CLOCK_MONOTONIC suspend behavior
@ 2018-04-26 19:44 Mathieu Desnoyers
  0 siblings, 0 replies; only message in thread
From: Mathieu Desnoyers @ 2018-04-26 19:44 UTC (permalink / raw)
  To: Michael Kerrisk
  Cc: linux-kernel, linux-api, Mathieu Desnoyers, Thomas Gleixner,
	John Stultz, Stephen Boyd, Linus Torvalds

Considering that user-space expects CLOCK_MONOTONIC not to account time
during which system is suspended, explicitly document this behavior as

Signed-off-by: Mathieu Desnoyers <>
CC: Michael Kerrisk <>
CC: Thomas Gleixner <>
CC: John Stultz <>
CC: Stephen Boyd <>
CC: Linus Torvalds <>
 man2/clock_getres.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man2/clock_getres.2 b/man2/clock_getres.2
index 0812d159a..ca5ca87c8 100644
--- a/man2/clock_getres.2
+++ b/man2/clock_getres.2
@@ -144,7 +144,7 @@ This clock is not affected by discontinuous jumps in the system time
 (e.g., if the system administrator manually changes the clock),
 but is affected by the incremental adjustments performed by
 .BR adjtime (3)
-and NTP.
+and NTP. It does not include time during which the system is suspended.
 .BR CLOCK_MONOTONIC_COARSE " (since Linux 2.6.32; Linux-specific)"
 .\" Added in commit da15cfdae03351c689736f8d142618592e3cebc3

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-26 19:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-26 19:44 [RFC PATCH manpages] clock_getres.2: document CLOCK_MONOTONIC suspend behavior Mathieu Desnoyers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).