ntp_gettime(3) Library Functions Manual ntp_gettime(3) ntp_gettime, ntp_gettimex - ( NTP) (libc -lc) #include int ntp_gettime(struct ntptimeval *ntv); int ntp_gettimex(struct ntptimeval *ntv); ntv : struct ntptimeval { struct timeval time; /* */ long maxerror; /* */ long esterror; /* */ long tai; /* TAI */ /* */ }; : time timeval: struct timeval { time_t tv_sec; /* (the Epoch) */ suseconds_t tv_usec; /* (Microseconds) */ }; maxerror . ntp_adjtime(3) ( : ) ( NTP_PHASE_MAX 16,000). esterror . ntp_adjtime(3) . . tai TAI ( ). ntp_gettime() ntptimeval time maxerror esterror. ntp_gettimex() ntp_gettime() tai. ntp_gettime() ntp_gettimex() adjtimex(2). . attributes(7). +------------+------------------------------------+--------------------+ || | | +------------+------------------------------------+--------------------+ |ntp_gettime(),| | MT-Safe | |ntp_gettimex()| | | +------------+------------------------------------+--------------------+ ntp_gettime() NTP. ntp_gettimex() GNU. ntp_gettime() glibc 2.1. ntp_gettimex() glibc 2.12. adjtimex(2) ntp_adjtime(3) time(7) NTP " " 3 . . : . 6.18 8 2026 ntp_gettime(3)