]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: use monotonic time to measure how long setting time takes
authorSami Kerola <kerolasa@iki.fi>
Mon, 7 Jan 2019 21:34:11 +0000 (21:34 +0000)
committerSami Kerola <kerolasa@iki.fi>
Sat, 12 Jan 2019 08:46:54 +0000 (08:46 +0000)
commitf78a90217447b10cb52c2789d88da07088b37425
tree76b4cb8d6a1fa5e29cf38c3c0af1bde76cf1bf40
parentee6e39305c55d04e647c294898568ed1d3699638
hwclock: use monotonic time to measure how long setting time takes

Earlier gettimeofday() was affected by discontinuous jumps.  Measuring how
long time it takes to set time using function that effected by the very
thing being measured makes head spin.  Lets make this less confusing with
monotonic clock that ticks on without jumps.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/Makemodule.am
sys-utils/hwclock-rtc.c