Skip to content

Commit

Permalink
Update time.md (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
liux-pro committed Nov 1, 2022
1 parent 656e0a0 commit 7f30690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/time.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ sys 0m0.007s
* user时间是指进程花费在用户模式中的CPU时间,这是唯一真正用于执行进程所花费的时间,其他进程和花费阻塞状态中的时间没有计算在内。
* sys时间是指花费在内核模式中的CPU时间,代表在内核中执系统调用所花费的时间,这也是真正由进程使用的CPU时间。

shell内建也有一个time命令,当运行time时候是调用的系统内建命令,应为系统内建的功能有限,所以需要时间其他功能需要使用time命令可执行二进制文件`/usr/bin/time`
shell内建也有一个time命令,当运行time时候是调用的系统内建命令,因为系统内建的功能有限,所以需要时间其他功能需要使用time命令可执行二进制文件`/usr/bin/time`

使用`-o`选项将执行时间写入到文件中:

Expand Down

0 comments on commit 7f30690

Please sign in to comment.