2000-01-12 14:41:00 +00:00
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
|
|
|
.Dd January 7, 2000
|
|
|
|
.Dt NTPTIME 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm ntptime
|
|
|
|
.Nd read kernel time variables
|
|
|
|
.Sh SYNOPSIS
|
2000-11-20 20:10:44 +00:00
|
|
|
.Nm
|
2000-01-12 14:41:00 +00:00
|
|
|
.Op Fl chr
|
|
|
|
.Op Fl e Ar est_error
|
|
|
|
.Op Fl f Ar frequency
|
|
|
|
.Op Fl m Ar max_error
|
|
|
|
.Op Fl o Ar offset
|
|
|
|
.Op Fl s Ar status
|
|
|
|
.Op Fl t Ar time_constant
|
|
|
|
.Sh DESCRIPTION
|
2002-07-14 14:47:15 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility is useful only with special kernels
|
2000-01-12 14:41:00 +00:00
|
|
|
described in the
|
|
|
|
.Qo
|
|
|
|
A Kernel Model for Precision Timekeeping
|
|
|
|
.Qc
|
|
|
|
page
|
|
|
|
(available as part of the HTML documentation
|
|
|
|
provided in
|
|
|
|
.Pa /usr/share/doc/ntp ) .
|
|
|
|
It reads and displays time-related kernel variables
|
|
|
|
using the
|
2001-08-03 11:31:39 +00:00
|
|
|
.Fn gettime
|
2000-01-12 14:41:00 +00:00
|
|
|
and
|
2001-08-03 11:31:39 +00:00
|
|
|
.Xr adjtime 2
|
2000-01-12 14:41:00 +00:00
|
|
|
system calls if available.
|
|
|
|
A similar display can be obtained using the
|
|
|
|
.Xr ntpdc 8
|
|
|
|
program's
|
|
|
|
.Ic kerninfo
|
|
|
|
command.
|
2001-08-03 11:31:39 +00:00
|
|
|
.Pp
|
2000-01-12 14:41:00 +00:00
|
|
|
The following options are available:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Fl c
|
|
|
|
Display the execution time of
|
|
|
|
.Nm
|
|
|
|
itself.
|
|
|
|
.It Fl e Ar est_error
|
|
|
|
Specify estimated error, in microseconds.
|
|
|
|
.It Fl f Ar frequency
|
|
|
|
Specify frequency offset, in parts per million.
|
|
|
|
.It Fl h
|
2001-08-03 11:31:39 +00:00
|
|
|
Display help information.
|
2000-01-12 14:41:00 +00:00
|
|
|
.It Fl l
|
|
|
|
Specify the leap bits as a code from 0 to 3.
|
|
|
|
.It Fl m Ar max_error
|
2001-08-03 11:31:39 +00:00
|
|
|
Specify max possible errors, in microseconds.
|
2000-01-12 14:41:00 +00:00
|
|
|
.It Fl o Ar offset
|
|
|
|
Specify clock offset, in microseconds.
|
|
|
|
.It Fl r
|
|
|
|
Display Unix and NTP times in raw format.
|
|
|
|
.It Fl s Ar status
|
|
|
|
.It Fl t Ar time_constant
|
|
|
|
Specify time constant, an integer in the range 0-4.
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
2001-08-03 11:31:39 +00:00
|
|
|
.Xr adjtime 2 ,
|
2000-01-12 14:41:00 +00:00
|
|
|
.Xr ntpdc 8
|