Re: [Linuxptp-devel] [PATCH v3 2/2] ts2phc: Add PTP as a source of ToD

2023-04-11 Thread Maciek Machnikowski
On 4/11/2023 3:20 PM, Jakub RaczyƄski wrote: > Dear Maciek, > >> +if (ts - s->last_update >= TOD_UPDATE_INTERVAL) { >> +pmc_agent_update(s->agent); >> +s->last_update = ts; >> +} else { >> +sleep(0.01); >> +

[Linuxptp-devel] [PATCH v3 2/2] ts2phc: Add PTP as a source of ToD

2023-04-11 Thread Maciek Machnikowski
Add PPS ToD source that extracts ToD from master timestamps from a slave event monitor of the running ptp4l instance. It enables scenarios where reliable ToD sources, such as nmea, may not be available, but a system is connected to different ptp masters. It can be used in the APTS deployment wit