[ntp:questions] Dispaying nanoseconds

mills at udel.edu mills at udel.edu
Thu Feb 15 10:45:40 UTC 2007


Richard,

Fortan?! A few of us ancient geezers can read and write that script and 
yes, C can do f and e formats, too. You probably want to change the 
formats in the ctl_putdbl() routine in ntp_control.c.

I once read a book "How to Lie with Statistics". We have a case in 
point. Remember, the bits below the precision factor are purposely set 
to a tandom bitsting, so a readout in nanoseconds is truly misleading, 
unless the precision (time to read the system clock) is less than one 
microsecond.

Dave

Richard B. gilbert wrote:

> Eugen COCA wrote:
> 
>> On Feb 13, 10:55 pm, "Richard B. gilbert" <rgilber... at comcast.net>
>> wrote:
>>
>>> Eugen COCA wrote:
>>>
>>>> Are there any ways to display nanoseconds with ntpq or ntpdc programs ?
>>>
>>>
>>> What problem are you trying to solve??
>>
>>
>>
>> I am trying to display the offsets (like ntpq does) in nanoseconds (as
>> I'll have the server syncrhonized from a Rb source and a GPS).
>>
> 
> I think you will have to hack to code to do that.  Does C let you 
> display numbers as; e.g. 1.03E-09 or is that just Fortran?
> 
> 




More information about the questions mailing list