您的位置:首页 > 运维架构 > Linux

linux计算程序所用时间

2014-06-29 22:53 162 查看
#########################################################################
# File Name: testTime.sh
# Author: fangtest
# mail: fangxuhaha@126.com
# Created Time: Sun 29 Jun 2014 06:42:36 PM EDT
#########################################################################
#!/bin/bash

start=$(date +%s)
sleep 3
end=$(date +%s)
let used=end-start

echo start $start
echo end $end
echo used $used
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: