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

前端 未结 7 620
执笔经年
执笔经年 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条回答
  • 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.)

    0 讨论(0)
提交回复
热议问题