摘要:
time和/usr/bin/time 当我在bash中敲入time命令时,运行的其实是bash内置的time命令: $ time real 0m0.000s user 0m0.000s sys 0m0.000s $ type time time is a shell keyword 这个time命令 阅读全文
posted @ 2020-04-17 11:26
kakaisgood
阅读(1729)
评论(0)
推荐(0)
摘要:
time命令程序执行时加上time能够粗略统计程序执行过程中的耗时。通常会有三个值real time, user time和sys time. 1. real time概念:程序从开始到结束所经历的时间,也就是用户所感受到的时间。包括当前程序CPU的用时和所有延迟程序执行的因素的耗时总和(比如其他程 阅读全文
posted @ 2020-04-17 10:15
kakaisgood
阅读(947)
评论(0)
推荐(0)