timex(1) timex(1)
NAME
timex - time a command; report process data and system
activity
SYNOPSIS
timex [-o] [-p[fhkmrt]] [-s] command
DESCRIPTION
timex sends the given command to the shell for execution;
timex then reports (in seconds) the elapsed time, user time,
and system time spent in execution. Optionally, timex may
list or summarize process accounting data for the command
and all its children, or report total system activity during
the execution interval.
The output of timex is written on the standard error output.
Flag options are:
-p List process accounting records for command and all its
children. Suboptions f, h, k, m, r, and t modify the
data items reported, as defined in acctcom(1). timex
always reports the number of blocks read or written and
the number of characters transferred.
-o Report the total number of blocks read or written and
total characters transferred by command and all its
children.
-s Report total system activity (not just that due to
command) that occurred during the execution interval of
command. timex reports all the data items listed in
sar(1).
EXAMPLE
timex ps -el
runs the ps command (with the correct flag options), then
produces statistics concerning the command and system
activity during the command to the standard error output.
FILES
/usr/bin/timex
/usr/lib/sa/timex
SEE ALSO
acctcom(1), sar(1).
WARNING
Process records associated with command are selected from
the accounting file /usr/adm/pacct by inference, since
process genealogy is not available. Background processes
Page 1 (last mod. 1/16/87)
timex(1) timex(1)
having the same user-ID, terminal-ID, and execution time
window will be included spuriously.
Page 2 (last mod. 1/16/87)