bash measure execution time code example
Example 1: how to time a process in bash
> time { sleep 3; }
real 0m3.013s
user 0m0.002s
sys 0m0.006s
Example 2: bash measure execution time
time yourscript.sh
> time { sleep 3; }
real 0m3.013s
user 0m0.002s
sys 0m0.006s
time yourscript.sh