Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)
times(1) OSS Shell and Utilities Reference Manual
NAME
times - Prints accumulated running times
SYNOPSIS
times
DESCRIPTION
The times command returns the total time that has been used by the shell and the accumulated
run times of processes run by the shell.
Two sets of times are returned for both the shell time and process time. The first two numbers
represent the accumulated user time and accumulated system time used by the shell. The second
two numbers represent the accumulated user time and accumulated system time used for
processes.
EXAMPLES
1. The following example shows the time command and an example of its output:
times
0m0.23s 0m0.33s
0m0.13s 0m0.09s
The first line represents times used by the shell. The first number is the time used by the
shell for the user functions. The second number represents time used by the system for
shell functions.
The second line represents times used by the shell for subshell processes. The first
number represents user time for subshells, the second number represents system time
used for subshells.
NOTES
• Parameter assignment lists that precede the command remain in effect when the com-
mand completes.
• I/O redirections are processed after parameter assignments.
• Errors cause a script that contains the commands so marked to abort.
The times command is a shell built-in command. It differs from the regular commands in that it
does not open a new shell process when it executes.
A general discussion of shell built-in commands and a list of the OSS shell built-in commands
are in the reference page for sh(1).
RELATED INFORMATION
Commands: sh(1).
9−14 Hewlett-Packard Company 527188-004