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

Automatic timing via bash prompt



To time a command in bash one can type:

 $ time command args...

and get the output:

 real    0m0.026s
 user    0m0.003s
 sys     0m0.002s

Is it possible to capture this timing information automatically for
each command and display it as part of the bash prompt? If not bash,
then maybe some other shell?

Thanks in advance.

Igor

P.S.: Please CC, as I'm not on the list.



Reply to: