标签:学习笔记 shell
检查一组代码从执行开始到执行完毕的时间。
#!/bin/bash start=$(date +%s) commands; statements; end=$(date +%s) difference=$(( end - start )) echo Time taken to execute commands is $difference seconds.
标签:学习笔记 shell
原文地址:http://inputerror.blog.51cto.com/13472043/1982441