Re: [Hampshire] Linux time command for DOS?

Top Page

Reply to this message
Author: Alan Pope
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Linux time command for DOS?
On Fri, Nov 23, 2007 at 08:24:17AM -0500, Andy Random wrote:
> Ok so slightly off topic but I have a large number of GNU utilities
> compiled to run under Windows/DOS but I've never found a version of the
> Linux time command.
>
> I could really use a copy to... well, err, time somethings :)
>


Do you mean the /usr/bin/time command or the built in time command in bash?

alan@hactar:~$ time perl -e 'for($i=0;$i<1e8;$i++) { }'

real    0m9.316s
user    0m9.253s
sys     0m0.004s



alan@hactar:~$ /usr/bin/time perl -e 'for($i=0;$i<1e8;$i++) { }'
9.31user 0.00system 0:09.33elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
0inputs+0outputs (0major+421minor)pagefaults 0swaps


Cheers,
Al.