Re: [Linuxptp-users] clock_nanosleep on /dev/ptpX
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
|
From: Koehrer M. (ETAS/ESW5) <mat...@et...> - 2014-02-19 15:03:52
|
Hi William
>
> To be precise CLOCK_REALTIME is synchronized with your PTP clock using
> phc2sys, CLOCK_MONOTINIC not...
According to "man clock_gettime"
CLOCK_MONOTONIC
Clock that cannot be set and represents monotonic time since some unspecified
starting point. This clock is not affected by discontinuous jumps in the sys-
tem time (e.g., if the system administrator manually changes the clock), but is
affected by the incremental adjustments performed by adjtime(3) and NTP.
I think that phc2sys uses clock_adjtime() to modify the clock.
My thought was that this should effect CLOCK_REALTIME and CLOCK_MONOTONIC...
But likely I am wrong.
Regards
Mathias
|