cmd

Statistics 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.

speak up

Add your comment below, or trackback from your own site.

Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*Required Fields