Re: time doesn't work?

From: Garrett Cooper <yanefbsd_at_gmail.com>
Date: Fri, 12 Feb 2010 13:11:03 -0800
On Fri, Feb 12, 2010 at 1:08 PM, Ryan Stone <rysto32_at_gmail.com> wrote:
>>
>> [garrcoop_at_garrcoop-fbsd ~]$ time vim nose-plist-fix.diff
>>
>> # monkeyed around for a few seconds...
>>
>> real    0m5.753s
>> user    0m0.047s
>> sys     0m0.019s
>>
>> [garrcoop_at_garrcoop-fbsd ~/ipcvs/freebsd/src]$ time -p vim
>>
>> # pattered around for a few more seconds...
>>
>> real 12.04
>> user 0.07
>> sys 0.03
>>
>
> I'm not sure that this means much.  user and system time measure how
> much *cpu* time was used.  In an interactive application like vi I
> think that it's expected behaviour to see so little cpu time spent.

Yeah... you're probably right...

[garrcoop_at_garrcoop-fbsd ~]$ time sh -c 'while [ 1 ] ; do : ; done'
^C

real	0m3.337s
user	0m3.325s
sys	0m0.000s

Thanks for noting the obvious :),
-Garrett
Received on Fri Feb 12 2010 - 20:11:03 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:00 UTC