How can I determine the current reliability [correctness] of the system time?
1
vote
1
answer
228
views
I'm working on a project which will acquire a lot of timestamped data at fairly high resolution (50 samples per second) over a very long period of time (years).
The solution includes various failover mechanisms. During the lifespan of this project it's reasonable to assume that some data-loggers will need to be replaced. IE some will come online once data acquisition has already stated by others.
Given the nature of the data, it would be very bad if some data were recorded with inaccurate timestamps, even a handful of seconds out. NTP should be solid enough for this solution, and even if network is lost for a few hours the drift on the internal clock should be too small to cause a significant problem. *Actually we care less about data during internet outages for esoteric reasons*.
**What bothers me** is what happens when a data-logger is rebooted. Or booted for the first time. I want the device to reliably stabilise its system time using NTP before it meshes into the failover solution.
How can I determine the current reliability of the system time with respect to either chrony or ntpd. That is, how can I get a value from either, telling me:
- how recently they last synchronised
- If possible, a confidence value in the last update*
By Confidence I mean something along the lines of total round trip time of the NTP packets... which is of course part of the NTP specification.
Asked by Philip Couling
(20391 rep)
Apr 28, 2023, 08:54 PM
Last activity: Nov 23, 2023, 03:41 PM
Last activity: Nov 23, 2023, 03:41 PM