December 10th, 2008
The Archives
-
12.10.08Statistics on a program’s running time$ time script.sh real 1m0.004s user 0m30.020s sys 0m20.030s Runs script.sh (it could be any program). When script.sh finishes, time command outputs a message on stdout giving timing statistics about this program's running time. These contain the elapsed real time between invocation and termination, the user's CPU time, and the system's CPU time.