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 _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users