]> git.ipfire.org Git - thirdparty/util-linux.git/blob - misc-utils/lsclocks.1.adoc
Merge branch 'highsierra' of https://github.com/pali/util-linux
[thirdparty/util-linux.git] / misc-utils / lsclocks.1.adoc
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
21 It allows to display information like current time and resolutionof clocks like
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
36 *--output-all*::
37 Output all columns.
38
39 *-r*, *--raw*::
40 Use raw output format.
41
42 *-r*, *--time* _clock_
43 Show current time of one specific clocks.
44
45 *--no-discover-dynamic*
46 Do not try to discover dynamic clocks.
47
48 *-d*, *--dynamic-clock* _path_
49 Also display specified dynamic clock.
50 Can be specified multiple times.
51
52 *--no-discover-rtc*
53 Do not try to discover RTCs.
54
55 *-x*, *--rtc* _path_
56 Also display specified RTC.
57 Can be specified multiple times.
58
59 *-c*, *--cpu-clock* _pid_
60 Also display CPU clock of specified process.
61 Can be specified multiple times.
62
63 include::man-common/help-version.adoc[]
64
65 == OUTPUT COLUMNS
66
67 Each column has a type. Types are surround by < and >.
68
69 TYPE <``string``>::
70 Clock type.
71
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
87 RESOL_RAW <``number``>::
88 Clock resolution as returned by *clock_getres()*.
89
90 RESOL <``number``>::
91 Human readable version of *RESOL_RAW*.
92
93 REL_TIME <``string``>::
94 *TIME* time formatted as time range.
95
96 NS_OFFSET <``number``>::
97 Offset of the current namespace to the parent namespace as read from */proc/self/timens_offsets*.
98
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::[]