|
|
[root@GridServer zqx]# times rm -f test1001
0m0.016s 0m0.006s
0m0.010s 0m0.023s
man times了一下,还是不太了解,哪一个是指令真正执行时间啊?
struct tms {
clock_t tms_utime; /* user time */
clock_t tms_stime; /* system time */
clock_t tms_cutime; /* user time of children */
clock_t tms_cstime; /* system time of children */
};
The tms_utime field contains the CPU time spent executing instructions of the calling process. 那tms_utime是不是就是指令执行实际需要的时间?
请教各位了,谢谢~ |
|