]>
Commit | Line | Data |
---|---|---|
e9ddea79 TW |
1 | //po4a: entry man manual |
2 | = lsclocks(1) | |
3 | :doctype: manpage | |
4 | :man manual: User Commands | |
5 | :man source: util-linux {release-version} | |
6 | :page-layout: base | |
7 | :command: lsclocks | |
8 | ||
9 | == NAME | |
10 | ||
11 | lsclocks - display system clocks | |
12 | ||
13 | == SYNOPSIS | |
14 | ||
15 | *lsclocks* [option] | |
16 | ||
17 | == DESCRIPTION | |
18 | ||
19 | *lsclocks* is a simple command to display system clocks. | |
20 | ||
8440f1e1 | 21 | It allows to display information like current time and resolution of clocks like |
e9ddea79 TW |
22 | CLOCK_MONOTONIC, CLOCK_REALTIME and CLOCK_BOOTTIME. |
23 | ||
24 | == OPTIONS | |
25 | ||
26 | *-J*, *--json*:: | |
27 | Use JSON output format. | |
28 | ||
29 | *-n*, *--noheadings*:: | |
30 | Don't print headings. | |
31 | ||
32 | *-o*, *--output* _list_:: | |
33 | Specify which output columns to print. See the *OUTPUT COLUMNS* | |
34 | section for details of available columns. | |
35 | ||
9f59d21c TW |
36 | *--output-all*:: |
37 | Output all columns. | |
38 | ||
e9ddea79 TW |
39 | *-r*, *--raw*:: |
40 | Use raw output format. | |
41 | ||
30720c90 | 42 | *-r*, *--time* _clock_:: |
8440f1e1 | 43 | Show current time of one specific clock. |
e9ddea79 | 44 | |
30720c90 | 45 | *--no-discover-dynamic*:: |
6fcb27e7 TW |
46 | Do not try to discover dynamic clocks. |
47 | ||
30720c90 | 48 | *-d*, *--dynamic-clock* _path_:: |
c4620c6a | 49 | Also display specified dynamic clock. |
a5cded29 | 50 | Can be specified multiple times. |
dc3f05fc | 51 | |
30720c90 | 52 | *--no-discover-rtc*:: |
edba74df TW |
53 | Do not try to discover RTCs. |
54 | ||
30720c90 | 55 | *-x*, *--rtc* _path_:: |
edba74df TW |
56 | Also display specified RTC. |
57 | Can be specified multiple times. | |
58 | ||
30720c90 | 59 | *-c*, *--cpu-clock* _pid_:: |
dc3f05fc TW |
60 | Also display CPU clock of specified process. |
61 | Can be specified multiple times. | |
c4620c6a | 62 | |
e9ddea79 TW |
63 | include::man-common/help-version.adoc[] |
64 | ||
65 | == OUTPUT COLUMNS | |
66 | ||
67 | Each column has a type. Types are surround by < and >. | |
68 | ||
ac9ee302 TW |
69 | TYPE <``string``>:: |
70 | Clock type. | |
71 | ||
e9ddea79 TW |
72 | ID <``number``>:: |
73 | Numeric clock ID. | |
74 | ||
75 | CLOCK <``string``>:: | |
76 | Name in the form *CLOCK_* | |
77 | ||
78 | NAME <``string``>:: | |
79 | Shorter, easier to read name. | |
80 | ||
81 | TIME <``number``>:: | |
82 | Current clock timestamp as returned by *clock_gettime()*. | |
83 | ||
84 | ISO_TIME <``string``>:: | |
85 | ISO8601 formatted version of *TIME*. | |
86 | ||
36ebc72a | 87 | RESOL_RAW <``number``>:: |
8440f1e1 | 88 | Clock resolution as returned by *clock_getres*(2). |
e9ddea79 | 89 | |
f9c9bb15 TW |
90 | RESOL <``number``>:: |
91 | Human readable version of *RESOL_RAW*. | |
92 | ||
0c7cba92 TW |
93 | REL_TIME <``string``>:: |
94 | *TIME* time formatted as time range. | |
95 | ||
ed59648c TW |
96 | NS_OFFSET <``number``>:: |
97 | Offset of the current namespace to the parent namespace as read from */proc/self/timens_offsets*. | |
98 | ||
e9ddea79 TW |
99 | |
100 | == AUTHORS | |
101 | ||
102 | mailto:thomas@t-8ch.de[Thomas Weißschuh] | |
103 | ||
104 | == SEE ALSO | |
105 | ||
106 | *clock_getres*(2) *clock_gettime*(2) | |
107 | ||
108 | include::man-common/bugreports.adoc[] | |
109 | ||
110 | include::man-common/footer.adoc[] | |
111 | ||
112 | ifdef::translation[] | |
113 | include::man-common/translation.adoc[] | |
114 | endif::[] |