上海建站网络科技,新型网络营销推广方式,郑州seo外包顾问,seo免费课程视频文章目录1. 源码分析2. shell脚本1. 源码分析
执行前记录开始时间
执行脚本
记录记录结束时间
总耗时结束时间-开始时间2. shell脚本
#!/bin/bash
starttimedate %Y-%m-%d %H:%M:%S
# 执行脚本程序
./xxxloadupgrade.sh
endtimedate %Y-%m-%d %H:%M:%S
start_seconds$(date -…
文章目录1. 源码分析2. shell脚本1. 源码分析
执行前记录开始时间
执行脚本
记录记录结束时间
总耗时结束时间-开始时间2. shell脚本
#!/bin/bash
starttimedate %Y-%m-%d %H:%M:%S
# 执行脚本程序
./xxxloadupgrade.sh
endtimedate %Y-%m-%d %H:%M:%S
start_seconds$(date --date$starttime %s);
end_seconds$(date --date$endtime %s);
echo 本次运行时间 $((end_seconds-start_seconds))s