timex(1) — Series 800 Only
NAME
timex − time a command; report process data and system activity
SYNOPSIS
timex [-o] [-p[fhkmrt]] [-s] command
DESCRIPTION
timex reports in seconds the elapsed time, user time, and system time spent in execution of the given command. Optionally, process accounting data for command and all its children can be listed or summarized, and total system activity during the execution interval can be reported.
The output of timex is written on the standard error.
Options
-o Report the total number of blocks read or written and total characters transferred by command and all its children.
-p[fhkmrt] List process accounting records for command and all its children. The suboptions f, h, k, m, r, and t modify the data items reported. They behave as defined in acctcom(1M). The number of blocks read or written and the number of characters transferred are always reported.
-s Report total system activity (not just that due to command) that occurred during the execution interval of command. All the data items listed in sar(1) are reported.
EXAMPLES
A simple example:
timex -ops sleep 60
A terminal session of arbitrary complexity can be measured by timing a sub-shell:
timex -opskmt sh
session commands
EOT
WARNINGS
Process records associated with command are selected from the accounting file /usr/adm/pacct by inference, since process genealogy is not available. Background processes having the same user- ID, terminal- ID, and execution time window are spuriously included.
SEE ALSO
STANDARDS CONFORMANCE
timex: SVID2
Hewlett-Packard Company — HP-UX Release 9.03: April 1994