To be precise CLOCK_REALTIME is synchronized with your PTP clock using phc2sys, CLOCK_MONOTINIC not...
William -----Original Message----- From: Ledda William EXT [mailto:william.le...@iter.org] Sent: 19 February 2014 15:40 To: Koehrer Mathias (ETAS/ESW5); linuxptp-users@lists.sourceforge.net Subject: Re: [Linuxptp-users] clock_nanosleep on /dev/ptpX On PTP clock you can't use nanosleep and neither you can't create timers. Once that your system time is synchronize with phc2sys you can use CLOCK_REALTIME or CLOCK_MONOTONIC to do this kind of things. William -----Original Message----- From: Koehrer Mathias (ETAS/ESW5) [mailto:mathias.koeh...@etas.com] Sent: 19 February 2014 15:20 To: linuxptp-users@lists.sourceforge.net Subject: [Linuxptp-users] clock_nanosleep on /dev/ptpX Hi all, using linuxptp I can obtain a really good synchronization between multiple PCs. I want to run an application on each of the PCs, the execution should be synchronized. My idea was to use clock_nanosleep on the PTP clock (similar as the testptp does for getting the PTP clock time) using absolute time stamps to synchronize the running threads. However this is not working as the PTP clocks do not have nsleep implemented in the kernel (kernel 3.2.54-rt77). Does this mean that I have to use phc2sys to use the system clock again? Or is there any way to work directly on the PTP clock? Thanks for all hints! Best Regards Mathias ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users