Reports, in seconds, the elapsed time, user time, and system execution time for a command.
The timex command reports, in seconds, the elapsed time, user time, and system execution time for a command. With specified flags, the timex command lists or summarizes process accounting data for a command and all of its children. Command is the name of any executable file on the system. It also reports total system activity during the execution interval. Output is written to standard error. The system uses the /var/adm/pacct file to select process records associated with the command and includes background processes with the same user ID, workstation ID, and execution time window.
Item | Description |
---|---|
-o | Reports the total number of blocks read or written and total characters transferred by a command and all its children. |
-p | Lists process
accounting records for a command and all its
children. The number of blocks read or written and the number of characters
transferred are reported. The -p flag takes the f, h, k, m, r,
and t arguments defined in the acctcom command
to modify other data items.
|
-s | Reports total system activity during the execution of the command. All the data items listed in the sar command are reported. |
timex -o ls
timex -p ps -fe
timex -s ls
Item | Description |
---|---|
/var/adm/pacct | Used to select record associated with the command. |