|
|
timex(ADM) times a command and reports the system activities that occurred on behalf of the command as it executed. Run without options it reports the amount of real (clock) time that expired while the command was executing and the amount of CPU time (user and system) that was devoted to the process. For example:
# timex
command command_options
real 6:54.30
user 53.98
sys 14.86
Running timex -s is roughly equivalent
to running sar -A,
but it displays system statistics only from when you
issued the command until the command finished executing.
If no other programs are running,
this information can help identify which resources a specific
command uses during its execution.
System consumption can be collected
for each application program and used for
tuning the heavily loaded resources.
Other information is available if the process accounting software is installed; see
timex(ADM)
for more information.
timex belongs to a family of commands that report command resource usage. It can be regarded as an extension to time(C) which has no options and produces output identical to timex without options. If you wish to use time then you must invoke it by its full pathname as each of the Bourne, Korn and C shells have their own built-in version. The output from each of the shell built-ins varies slightly but is just as limited. The C shell, however, does add in average CPU usage of the specified command.