I am on a Raspberry Pi and have a service that wants to know how inaccurate (ie - number of seconds) the system time is if the system time is off by at least one minute. When Raspberry Pi starts up, NTP has already updated the time before my service has a chance to start. How would I accomplish this?
I have tried updating /etc/ntp.conf
by enabling statsdir:
statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
I believe clockstats
should contain a record whenever the clock has updated. I however do not see /var/log/ntpstats/clockstats
after I power off my Raspberry Pi for 5 minutes, and turn it back on.