You can use the time command, which is available on most (possibly all) Linux distributions. It will print the time spent by both the system and the user, and the total time.
for instance
bash-4.1 $ time (sleep 1; sleep 1)
will output something like
real 0m2.020s
user 0m0.014s
sys 0m0.005s
As you can see in parentheses, you can run each command chain that you want.
source
share