aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-11-10 01:31:04 +0100
committerMattias Andrée <maandree@operamail.com>2015-11-10 01:31:04 +0100
commit72b2291551712d6182c798b23884bf50f2cf244e (patch)
treef00bfefd67bc2fb9bd705b443f76df728d6303b7 /README
parentfix error (diff)
downloadsleep-until-72b2291551712d6182c798b23884bf50f2cf244e.tar.gz
sleep-until-72b2291551712d6182c798b23884bf50f2cf244e.tar.bz2
sleep-until-72b2291551712d6182c798b23884bf50f2cf244e.tar.xz
update doc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'README')
-rw-r--r--README16
1 files changed, 14 insertions, 2 deletions
diff --git a/README b/README
index c37bdae..8725722 100644
--- a/README
+++ b/README
@@ -2,14 +2,26 @@ NAME
sleep-until – sleeps until a specified time
SYNOPSIS
- sleep-until TIMEPOINT...
+ sleep-until CLOCKNAME... TIMEPOINT...
DESCRIPTION
Pause until TIMEPOINT. TIMEPOINT is the number of seconds
- since Epoch, in UTC but not accounting for leap seconds.
+ since Epoch, in UTC but not accounting for leap seconds,
+ by default. If CLOCKNAME is specifed, TIMEPOINT is the
+ number of seconds since the zerotime of that clock.
TIMEPOINT may be an arbitrary floating point number.
Pause is continued when interrupted.
+ On Linux 4.2.2 the clocks that can be used are:
+ * CLOCK_REALTIME
+ * CLOCK_MONOTONIC
+ * CLOCK_BOOTTIME
+ * CLOCK_REALTIME_ALARM
+ * CLOCK_BOOTTIME_ALARM
+ Note that the neither course clocks, CLOCK_MONOTONIC_RAW
+ (the proper implementation of a monotonic clock), and
+ CLOCK_TAI does not work.
+
SEE ALSO
sleep(1), date(1)