Pages

Sunday, 30 April 2017

Getting the execution time of a command in the shell

Using the 'time' utility can easily get the execution time of a command - for example:

time sleep 5

should produce something like:

real    0m5.011s
user    0m0.000s
sys     0m0.003s

This (in my case) is very useful when checking how long a kernel took to compile!

No comments:

Post a Comment