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
[r...@i71 ~]# export TIME="%e %U %S"
[r...@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
[r...@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
[r...@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
_______________________________________________
rhelv5-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/rhelv5-list