start = starttime command1 end = endtime timeInteval = endtime - starttime echo "command1 takes xxxx ms" >> ./report.log ..... start = command2 end = timeInteval= endtime- starttime
[quote=引用 2 楼 ladofwind 的回复:] [quote=引用 1 楼 zmlovelx 的回复:] time command1 会额外输出类似以下的信息,自己提取就好了。 real 0m0.006s user 0m0.005s sys 0m0.001s
[quote=引用 1 楼 zmlovelx 的回复:] time command1 会额外输出类似以下的信息,自己提取就好了。 real 0m0.006s user 0m0.005s sys 0m0.001s
time command1 会额外输出类似以下的信息,自己提取就好了。 real 0m0.006s user 0m0.005s sys 0m0.001s
19,610
社区成员
74,604
社区内容
加载中
试试用AI创作助手写篇文章吧