[ntp:questions] Best ways to get the reference times from ntp

William Unruh unruh at invalid.ca
Wed Apr 30 08:47:48 UTC 2014


On 2014-04-30, Maximilian Brehm <maximilian.brehm at tu-ilmenau.de> wrote:
>
>
> Hey, 
>
> for my application (external to ntpd) I would like to extract
> the reference times of the peers ntpd synchronizes with. Of course,
> there is ntpdc that shows me the estimated offsets of the different
> reference clocks to the system clock. Are there other more efficient
> ways? If not, would you recommend me code segments in ntpd to extract
> this kind of data (by writing the methods myself)? 

The system time of your system is the best that ntpd can do to get the
reference times of the peers. So just use the system time.
NOt sure what it is that you need to do this for. 



>
> Regards
>
>
> Maximilian Brehm



More information about the questions mailing list