This repository has been archived by the owner on Jul 18, 2022. It is now read-only.
[Feature complete] Sleep until a specified time
License
maandree/sleep-until
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
NAME sleep-until – sleep until a specified time SYNOPSIS sleep-until [CLOCKNAME | TIMEPOINT] ... DESCRIPTION Pause until TIMEPOINT. TIMEPOINT is the number of 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. RATIONALE Previously, the best wait to sleep until a specific time was to use date, sleep, and arithmetics in Bash. This is very inconvenient, and only allows sleep over a monotonic clock. This progam was written so that the author could combine it with mplayer to construct a custom alarm clock. SEE ALSO sleep(1), date(1)
About
[Feature complete] Sleep until a specified time
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published