public inbox for linux-rt-users@vger.kernel.org
 help / color / mirror / Atom feed
* CLOCK_REALTIME instead of CLOCK_MONOTONIC for PTP coupled RT_PREEMPT systems?
@ 2014-07-24  7:36 Koehrer Mathias (ETAS/ESW5)
  2014-08-07  5:44 ` Richard Cochran
  0 siblings, 1 reply; 2+ messages in thread
From: Koehrer Mathias (ETAS/ESW5) @ 2014-07-24  7:36 UTC (permalink / raw)
  To: linux-rt-users@vger.kernel.org

Hi all,

as far as I know is the standard recommendation to use the clock CLOCK_MONOTONIC with e.g. clock_gettime and clock_nanosleep for real time usage.
I have now the requirement that a couple of (x86) PCs are coupled and synchronized using PTP (linuxptp Project).
The idea of this coupling is that all PCs have always the same (absolute) time stamp (with the PTP accuracy). For this I have to use the clock CLOCK_REALTIME
instead of CLOCK_MONOTONIC.
What speaks against using CLOCK_REALTIME for the real time application?
Are there any drawbacks? 
With our application I can ensure that no manually set of the time occurs.

Thanks for any feedback on this question.

Mathias


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-07  5:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-24  7:36 CLOCK_REALTIME instead of CLOCK_MONOTONIC for PTP coupled RT_PREEMPT systems? Koehrer Mathias (ETAS/ESW5)
2014-08-07  5:44 ` Richard Cochran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox