[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[rhelv5-list] elapsed time - user time - kernel time < 0 ?



I played around with the command /usr/bin/time and found some strange values when I calculate the above time.

In the three below outputs, two of them show negatime time. What does it mean with negative time for that calculation ?


Thanks,
Vu


[root i71 ~]# export TIME="%e %U %S"

[root i71 ~]# /usr/bin/time tar czf /tmp/tmp.etc.tar.gz /etc 2>&1 | tail -1 | gawk '{print "Total="$1 ",User=" $2 ",System=" $3 ",Q time=" $1 -$2 -$3}'
Total=3.17,User=3.15,System=0.12,Q time=-0.1

[root i71 ~]# /usr/bin/time tar czf /tmp/tmp.etc.tar.gz /etc 2>&1 | tail -1 | gawk '{print "Total="$1 ",User=" $2 ",System=" $3 ",Q time=" $1 -$2 -$3}'
Total=3.17,User=3.13,System=0.13,Q time=-0.09

[root i71 ~]# /usr/bin/time tar czf /tmp/tmp.etc.tar.gz /etc 2>&1 | tail -1 | gawk '{print "Total="$1 ",User=" $2 ",System=" $3 ",Q time=" $1 -$2 -$3}'
Total=3.25,User=3.12,System=0.09,Q time=0.04



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]