ts: Introduce '-m' option to use CLOCK_MONOTONIC
commit96809417fcceb13c83caa6b16d8174ea209bce27
authorBen Leinweber <bleinweber@spaceflight.com>
Mon, 30 Oct 2017 15:24:47 +0000 (30 08:24 -0700)
committerJoey Hess <joeyh@joeyh.name>
Mon, 30 Oct 2017 16:51:08 +0000 (30 12:51 -0400)
tree027f9d688fc03e3532198cc36a3813db14c5c93b
parentb6a010d759c53befdc9755760d28b6647d50f8b0
ts: Introduce '-m' option to use CLOCK_MONOTONIC

The new '-m' option will retrieve the monotonic clock rather than the
realtime clock.

Sometimes it is required that the timer being used not change even when
the user updates the system time. The monotonic clock guarantees a
monotonically increasing time value which may not be adjusted.

Signed-off-by: Ben Leinweber <bleinweb@gmail.com>
ts