[LinuxPPS] cross posting [time-nuts] NTP API on Linux 2.6.26

James Boddington boddingt at internode.on.net
Sun Jan 11 11:02:44 CET 2009


Hal V. Engel wrote:
> On Saturday 10 January 2009 22:19:51 clemens at dwf.com wrote:
>> <snip>
>>
>>> # ntptime
>>> ntp_gettime() returns code 0 (OK)
>>>   time cd137e25.947b02a0  Sat, Jan 10 2009 12:05:57.580, (.580002806),
>>>   maximum error 8294508 us, estimated error 2 us, TAI offset 0
>>> ntp_adjtime() returns code 0 (OK)
>>>   modes 0x0 (),
>>>   offset -0.426 us, frequency -39.298 ppm, interval 1 s,
>>>   maximum error 8294508 us, estimated error 2 us,
>>>   status 0x2001 (PLL,NANO),
>>>   time constant 4, precision 0.001 us, tolerance 500 ppm,
>> but wait a minute.
>> Your precision is showing 0.001 us, which is ns precision.
>> Where does that come from in ntptime?
> 
> This comes from the glibc patch.

I get ntptime saying precision 0.001 us with glibc 2.6.1 and the only patch I 
have is what I posted here in the past, enough changes to timex.h so ntp would 
compile with nano support.

ntp_gettime() returns code 0 (OK)
   time cd1441fd.00153bd4  Sun, Jan 11 2009 20:01:33.000, (.000324017),
   maximum error 481 us, estimated error 0 us
ntp_adjtime() returns code 0 (OK)
   modes 0x0 (),
   offset 0.066 us, frequency -0.979 ppm, interval 1 s,
   maximum error 481 us, estimated error 0 us,
   status 0x2001 (PLL,NANO),
   time constant 2, precision 0.001 us, tolerance 512 ppm,


-- 
    James



More information about the LinuxPPS mailing list