Re: [Linuxptp-users] Fw: clock_gettime() and clock_id (Nemo Crypto)
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Miroslav L. <mli...@re...> - 2022-10-31 07:25:55
|
On Sun, Oct 30, 2022 at 05:50:00PM +0000, Nemo Crypto wrote: > Thank you Chris, this answers my question. > > I used CLOCK_REALTIME and observed the time jumping according to the timezone change and day light saving adjustment. I think CLOCK_TAI would be the right one to use, I will try this. CLOCK_REALTIME is supposed to keep time in UTC, not a local timezone. The only observable time jumps when synchronized should be leap seconds. If your application is displaying time in a broken-down format, it might be an issue with calling localtime() instead of gmtime(). -- Miroslav Lichvar |