I’m trying to get NTP running on a QNX 6 platform. The sticking point is how
to adjust the clock incrementally after an initial slew. It seems that most
platforms have an adjtime function that takes a struct timeval for the
number of usec to adjust. QNX has the ClockAdjust function that would appear
to do the same thing, except it’s different. Instead of a struct timeval,
QSSL has invented a struct _clockadjust that contains the amount of time per
tick and the number of ticks to adjust the clock.
It looks like the upper limit on adjustments is 500 usec. Does anyone have
an estimate for the number of ticks over which that correction should be
applied? It would be nice to base it on the unix adjtime function, but I
don’t know that much about how the adjtime function works on that platform.
Thanks,
David Kuechenmeister