measure running time in bash
October 31st, 2007 by Lawrence David
to measure how much time a program takes to execute from the command-line, use the ‘time’ function.
for instance, to time the ‘date’ command:
>> time date
Wed Oct 31 14:12:41 EDT 2007real   0m0.003s
user   0m0.000s
sys    0m0.002s