检查一组命令所花的时间
start=$(date +%s)
commands;
statements;
end=$(date +%s)
difference=$(( end - start ))
echo Time taken to execute commands is $difference seconds.
start=$(date +%s)
commands;
statements;
end=$(date +%s)
difference=$(( end - start ))
echo Time taken to execute commands is $difference seconds.