Time and NTP on RTEMS

Jake Janovetz janovetz at uiuc.edu
Sat Jan 27 22:55:16 UTC 2001


Hello...

    I've recently needed to integrate time into my RTEMS applications
and have a couple questions.  I see that the NTP is supported, but only
in single-query mode (not a daemon).  This should be adequate for what
I want.  I have called time(), then localtime(), then strftime() to
get a printout of the current time, but I see that the time is off
by several hours, so I assume the timezone has not been properly
set.  How is this supposed to be done in RTEMS?
    Daemon mode of NTP is relatively complicated if I understand it
correctly (having to continually make small adjustments to slide the
device time to the proper time).  Is this something currently under
development (for RTEMS)?

    Thanks!
    Jake




More information about the users mailing list