Robert Gubler wrote:
 > Hello,
 > 
 > I'd like to synchronize CLOCK_REALTIME between some computers that share an
 > Ethernet switch.  I am using RTNet as my networking stack.  My approach
 > right now is very simplistic.  I have a central server that will be sending
 > out one 1 packet per second, with its struct timespec it got as a result of
 > calling clock_gettime(CLOCK_REALTIME,...). The computers listening for this
 > packet would then call clock_settime(CLOCK_REALTIME,..).
 > 
 > In the Xenomai POSIX skin API doc it says clock_settime() isn't supported.
 > Is there a recommended approach to accomplishing this?   I am using Xenomai
 > 2.4-rc4.

clock_settime IS supported by Xenomai 2.4, where does it still say in
the doc that it is not supported ?

However clock_settime is a costly service since it walks the system
timers list to recompute their expiration date, so calling it often may
not be a good idea.

Also note that xenomai CLOCK_REALTIME clock is set to the value of Linux
CLOCK_REALTIME clock on system startup, but then does not follow the
corrections made by ntp, which means that it drifts if you compare them.

-- 


                                            Gilles Chanteperdrix.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to