/proc/stat CPU time units are sysconf(_SC_CLK_TCK).

ASEE ALSO: add time(7).
This commit is contained in:
Michael Kerrisk 2008-06-24 13:56:03 +00:00
parent 7a017e241f
commit 268f000bcf
1 changed files with 4 additions and 1 deletions

View File

@ -1604,7 +1604,9 @@ entries include:
.TP
\fIcpu 3357 0 4313 1362393\fP
The amount of time, measured in units of
USER_HZ (1/100ths of a second on most architectures),
USER_HZ (1/100ths of a second on most architectures, use
.IR sysconf(_SC_CLK_TCK)
to obtain the right value),
.\" 1024 on Alpha and ia64
that the system spent in user mode,
user mode with low priority (nice), system mode, and the
@ -2445,6 +2447,7 @@ of thing that needs to be updated very often.
.BR syslog (2),
.BR slabinfo (5),
.BR hier (7),
.BR time (7),
.BR arp (8),
.BR dmesg (8),
.BR hdparm (8),