How to understand the output of time command?

后端 未结 3 875
离开以前
离开以前 2021-02-01 01:58

I am trying to figure out the performance of my code, but I do not understand the output of the time command, Can anybody please explain what does time command outp

3条回答
  •  不要未来只要你来
    2021-02-01 02:34

    'real' is the amount of clock time it took. If you were to time it with a stopwatch, that's what you'd get.

    'user' is the amount of CPU time that the process itself used.

    'sys' is the amount of CPU time that the kernel spent on behalf of the process.

提交回复
热议问题