TrumanWong

times

Displays the accumulated process time.

The main purpose

  • Print out the cumulative user time and system time used by the shell and its sub-processes.

return value

Always returns success.

example

# Excuting an order
times
# Return results
0m0.037s 0m0.009s
0m0.010s 0m0.024s
# According to the man manual of times(2), the corresponding relationship is as follows:
# User time | System time
# User time of the child process | System time of the child process

Notice

  1. This command is a built-in bash command. For related help information, please see the help command.