TIMEX(1) | User Commands | TIMEX(1) |
timex - time a command; report process data and system activity
timex [-o] [-p [-fhkmrt]] [-s] command
The given command is executed; the elapsed time, user time and system time spent in execution are reported in seconds. Optionally, process accounting data for the 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 standard error.
The following options are supported:
-o
-p
-f
-h
-k
-m
-r
-t
-s
Example 1 Examples of timex.
A simple example:
example% timex -ops sleep 60
A terminal session of arbitrary complexity can be measured by timing a sub-shell:
example% timex -opskmt sh
session commands EOT
Process records associated with command are selected from the accounting file /var/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.
September 14, 1992 | OmniOS |