linux time shell统计脚本运行时间
生活随笔
收集整理的這篇文章主要介紹了
linux time shell统计脚本运行时间
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
time命令最常用的使用方式就是在其后面直接跟上命令和參數:
time <command> [<arguments...>]
在命令執行完成之后就會打印出CPU的使用情況:
real? ?? ? ?<== 實際使用時間(real time)?
user? ? ? ?<== 用戶態使用時間(the process spent in user mode)?
sys? ? ? ? ?<==?內核態使用時間(the process spent in kernel mode)
time命令跟上-p參數可以只打印時間數值(秒數),不打印單位。
?
總結
以上是生活随笔為你收集整理的linux time shell统计脚本运行时间的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux shell 学习小结
- 下一篇: linux shell 数值计算let和