Why CLOCK_MONOTONIC?
Why CLOCK_MONOTONIC?
Posted Mar 9, 2018 17:30 UTC (Fri) by pbonzini (subscriber, #60935)In reply to: Why CLOCK_MONOTONIC? by glenn
Parent article: Time-based packet transmission
Posted Mar 9, 2018 20:13 UTC (Fri)
by wahern (subscriber, #37304)
[Link] (3 responses)
For many engineering use cases what people normally would want is CLOCK_TAI. But, AFAIU, CLOCK_TAI can go backwards if the sysadmin or faulty hardware demands it, so often CLOCK_MONOTONIC is the safest choice to avoid weird arithmetic errors (as opposed to errors from poor accuracy or precision).
There's a movement to remove leap seconds from UTC so that UTC becomes a fixed offset from TAI. IMO that's short-sighted. It doesn't really improve things much as a practical matter (see TAI vs monotonic, above). Nor even as a theoretical matter (see special relativity). Anyhow, if we wanted to ignore the inherent complexity of time synchronization we may as well jump straight to BCT (https://en.wikipedia.org/wiki/Barycentric_Coordinate_Time)
Posted Mar 9, 2018 20:50 UTC (Fri)
by k8to (guest, #15413)
[Link] (2 responses)
Posted Mar 9, 2018 20:58 UTC (Fri)
by vadim (subscriber, #35271)
[Link] (1 responses)
I'm wondering if you might know what it could have been. It was a dual CPU Athlon MP.
Posted Mar 9, 2018 22:58 UTC (Fri)
by zlynx (guest, #2285)
[Link]
Anyway, if a program was using TSC, an AMD system might run TSC at different rates on different CPUs since TSC was actually pegged to the CPU's clock rate. Whereas on Intel TSC was a virtual clock. No matter the clock rate, TSC ran at the same speed.
I could only find this: https://github.com/Psychtoolbox-3/Psychtoolbox-3/wiki/FAQ...
Why CLOCK_MONOTONIC?
Why CLOCK_MONOTONIC?
Why CLOCK_MONOTONIC?
Why CLOCK_MONOTONIC?