At 20:13 07/01/00 -0000, Kenn Humborg wrote:
>> Hello there,
>> I find myself in need of a program that will measure how long a program
>> takes to execute. It has to be quite accurate - 1/100s of a second at the
>> very least.
>>The time command:
>>[kenn at atlas download]$ time ls
>amavis-0.2.0-pre6 amavis-0.2.0-pre6.tar.gz
>linux-2.2.14.tar.bz2 qbus-ide sendmail-8.9.1-6.src.rpm
>0.00user 0.01system 0:00.01elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
>0inputs+0outputs (100major+13minor)pagefaults 0swaps
>[kenn at atlas download]$
On csh for the amiga there was a cool belll/whistle, you could set the
prompt (or window title) to include the time taken to execute the last
command. Does anyone know a way to do that in a linux shell?
Fergal
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!