From 55f749ae91be8a4c77030598f456b84f57e13f95 Mon Sep 17 00:00:00 2001 From: Cyril Hrubis Date: Mon, 25 Feb 2013 09:32:22 +0100 Subject: [PATCH] clock_getres.2: Document CLOCK_REALTIME_COARSE and CLOCK_MONOTONIC_COARSE Signed-off-by: Michael Kerrisk --- man2/clock_getres.2 | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/man2/clock_getres.2 b/man2/clock_getres.2 index 9d90c1f53..c1cfaea26 100644 --- a/man2/clock_getres.2 +++ b/man2/clock_getres.2 @@ -29,7 +29,7 @@ .\" .\" FIXME: Linux 2.6.39 adds CLOCK_BOOTTIME .\" -.TH CLOCK_GETRES 2 2012-11-07 "" "Linux Programmer's Manual" +.TH CLOCK_GETRES 2 2013-02-25 "" "Linux Programmer's Manual" .SH NAME clock_getres, clock_gettime, clock_settime \- clock and time functions .SH SYNOPSIS @@ -129,6 +129,12 @@ This clock is affected by discontinuous jumps in the system time and by the incremental adjustments performed by .BR adjtime (3) and NTP. +.BR CLOCK_REALTIME_COARSE " (since Linux 2.6.32; Linux-specific)" +.\" Added in commit da15cfdae03351c689736f8d142618592e3cebc3 +Faster but less precise version of +.BR CLOCK_REALTIME. +Use when you need very fast, but not fine-grained timestamps. +.TP .TP .B CLOCK_MONOTONIC Clock that cannot be set and represents monotonic time since @@ -138,6 +144,11 @@ This clock is not affected by discontinuous jumps in the system time but is affected by the incremental adjustments performed by .BR adjtime (3) and NTP. +.BR CLOCK_MONOTONIC_COARSE " (since Linux 2.6.32; Linux-specific)" +.\" Added in commit da15cfdae03351c689736f8d142618592e3cebc3 +Faster but less precise version of +.BR CLOCK_MONOTONIC. +Use when you need very fast, but not fine-grained timestamps. .TP .BR CLOCK_MONOTONIC_RAW " (since Linux 2.6.28; Linux-specific)" .\" Added in commit 2d42244ae71d6c7b0884b5664cf2eda30fb2ae68, John Stultz