--------
In message <[email protected]>, Magnus Danielson writes:

>Monitoring as such is an important task, and some of the NTP clients 
>might be servers in other contexts, and then it makes sense to monitor 
>that they got their NTP time into shape.

For which there has existed a system call for 20 years now:

     ntp_gettime() has as argument a struct ntptimeval * with the following
     members:

     struct ntptimeval {
             struct timeval time;    /* current time (ro) */
             long maxerror;          /* maximum error (us) (ro) */
             long esterror;          /* estimated error (us) (ro) */
     };

     These have the following meaning:
     time       Current time (read-only).
     maxerror   Maximum error in microseconds (read-only).
     esterror   Estimated error in microseconds (read-only).

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[email protected]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
time-nuts mailing list -- [email protected]
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.

Reply via email to