检查一组命令所花的时间

start=$(date +%s)

commands;

statements;

end=$(date +%s)

difference=$(( end - start ))

echo Time taken to execute commands is $difference seconds.

posted on 2013-06-17 13:46  awk  阅读(142)  评论(0)    收藏  举报

导航