| Dyxa.com - Document Archive |
| Manual Pages FAQs HOWTOs |
|
|
NTP_GETTIMESection: System Calls (2)Index Return to Main Contents BSD mandoc NAMEntp_gettime - NTP user application interfaceSYNOPSISIn sys/timex.h Ft int Fn ntp_gettime struct ntptimeval *ntvDESCRIPTIONThe time returned by Fn ntp_gettime is in a Vt timespec structure, but may be in either microsecond (seconds and microseconds) or nanosecond (seconds and nanoseconds) format. The particular format in use is determined by the STA_NANO bit of the status word returned by the Fn ntp_adjtime system call. Fn ntp_gettime has as argument a pointer to the Vt ntptimeval structure with the following members:
struct ntptimeval {
struct timespec time; /* current time (ns) (ro) */
long maxerror; /* maximum error (us) (ro) */
long esterror; /* estimated error (us) (ro) */
long tai; /* TAI-UTC offset */
int time_state; /* time status */
};
These are understood as:
RETURN VALUESRv -std ntp_gettimePossible states of the clock are:
SEE ALSOntp_adjtime2, ntpd(8)
AUTHORSThis manual page was written by An Tom Rhodes Aq trhodes@FreeBSD.org .
Index |
|||
|
© 2013 Dyxa.com. All Rights Reserved. |