summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/html/ntptime.htm
blob: 3cc454487de3465a0242ce9b4a5da9eda387a51f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   <META NAME="GENERATOR" CONTENT="Mozilla/4.01 [en] (Win95; I) [Netscape]">
   <TITLE>ntptime - read kernel time variables
</TITLE>
</HEAD>
<BODY>

<H3>
<TT>ntptime</TT> - read kernel time variables</H3>

<HR>
<H4>
Synopsis</H4>
<TT>ntptime [ -chr ] [ -e <I>est_error</I> ] [ -f <I>frequency</I> ] [
-m <I>max_error</I> ] [ -o <I>offset</I> ] [ -s <I>status</I> ] [ -t <I>time_constant</I>
]</TT>
<H4>
Description</H4>
This program is useful only with special kernels described in the <A HREF="kern.htm">A
Kernel Model for Precision Timekeeping </A>page. It reads and displays
time-related kernel variables using the <TT>ntp_gettime()</TT> system call.
A similar display can be obtained using the <TT>ntpdc</TT> program and
<TT>kerninfo</TT> command.
<H4>
Options</H4>

<DL>
<DT>
<TT>-c</TT></DT>

<DD>
Display the execution time of <TT>ntptime</TT> itself.</DD>

<DT>
<TT>-e <I>est_error</I></TT></DT>

<DD>
Specify estimated error, in microseconds.</DD>

<DT>
<TT>-f <I>frequency</I></TT></DT>

<DD>
Specify frequency offset, in parts per million.</DD>

<DT>
<TT>-h</TT></DT>

<DD>
Display times in Unix timeval format. Default is NTP format.</DD>

<DT>
<TT>-l</TT></DT>

<DD>
Specify the leap bits as a code from 0 to 3.</DD>

<DT>
<TT>-m <I>max_error</I></TT></DT>

<DD>
Display help information.</DD>

<DT>
<TT>-o <I>offset</I></TT></DT>

<DD>
Specify clock offset, in microseconds.</DD>

<DT>
<TT>-r</TT></DT>

<DD>
Display Unix and NTP times in raw format.</DD>

<DT>
<TT>-s <I>status</I></TT></DT>

<DD>
Specify clock status. Better know what you are doing.</DD>

<DT>
<TT>-t <I>time_constant</I></TT></DT>

<DD>
Specify time constant, an integer in the range 0-4.</DD>
</DL>

<HR>
<ADDRESS>
David L. Mills (mills@udel.edu)</ADDRESS>

</BODY>
</HTML>
OpenPOWER on IntegriCloud