Re: [Linuxptp-users] clock_nanosleep on /dev/ptpX
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Richard C. <ric...@gm...> - 2014-02-19 15:12:14
|
On Wed, Feb 19, 2014 at 03:03:41PM +0000, Koehrer Mathias (ETAS/ESW5) wrote: > > 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. Both CLOCK_REALTIME and CLOCK_MONOTONIC use the same frequency, but CLOCK_MONOTONIC starts with zero at boot time, and it never jumps. So you cannot use it to start tasks on two different machines at the same moment in time. Thanks, Richard |