On Wed, Oct 31, 2018 at 02:55:13PM +0530, Dolly Gyanchandani wrote:
> Hello all,
> 
> We are using PTP Hardware TimeStamping (setup on CentOS7 machines). We want
> to get TAI time.
> 
> Through ptp4l and phc2sys, the system UTC clock gets updated by the PTP
> master clock. But is there a way to get TAI time?

The kernel provides the CLOCK_TAI clock for applications. It can be
read with the clock_gettime() function.

If you just need the UTC-TAI offset, there is the ntp_gettime()
function.

-- 
Miroslav Lichvar


_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to