What do 'real', 'user' and 'sys' mean in the output of time(1)?

前端 未结 7 608
执笔经年
执笔经年 2020-11-22 00:35
$ time foo
real        0m0.003s
user        0m0.000s
sys         0m0.004s
$

What do \'real\', \'user\' and \'sys\' mean in the output of time?

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-22 00:57

    Real shows total turn-around time for a process; while User shows the execution time for user-defined instructions and Sys is for time for executing system calls!

    Real time includes the waiting time also (the waiting time for I/O etc.)

提交回复
热议问题