pdp11v/usr/man/u_man/man1/timex.1

.TH TIMEX 1
.SH NAME
timex \- time a command; report process data and system activity
.SH SYNOPSIS
.B timex\ 
[\|options\|] command
.SH DESCRIPTION
The given
.I command\^
is executed;
the elapsed time, user time and system time
spent in execution are reported in seconds.
Optionally, process accounting data for the
.I command
and all its children can be listed or summarized,
and total system activity during the execution interval
can be reported.
.P
The output of
.I timex
is written on standard error.
.P
.IR Options\  are:
.TP .4i
.B \-p
List process accounting records for
.I command
and all its children.
Suboptions 
.B f, h, k, m, r, 
and
.B t
modify the data items reported, as defined in 
.IR acctcom (1).
The number of blocks read or written and the number
of characters transferred are always reported.
.TP .4i
.B \-o
Report the total number of blocks read or written and
total characters transferred by 
.I command 
and all its children.
.TP .4i
.B \-s
Report total system activity (not just that due to 
.IR command )
that occurred during the execution interval of
.IR command .
All the data items listed in 
.IR sar (1)
are reported.
.SH "SEE ALSO"
acctcom(1), sar(1).
.SH WARNING
Process records associated with
.I command
are selected from the accounting file
.B /usr/adm/pacct
by inference, since process genealogy is not available.
Background processes having the same user-id,
terminal-id, and execution time window will be spuriously included.
.SH EXAMPLES
A simple example:
.RS
.PP
timex \-ops\ sleep 60
.RE
.PP
A terminal session of arbitrary complexity can be measured
by timing a sub-shell:
.RS
.PP
timex \-opskmt\ sh
.RS
.PP
session commands
.RE
.SM EOT
.RE
.\"	@(#)timex.1	5.2 of 5/18/82