Automatically measuring command execution times
Hi,
I have been playing around with the bash prompt, and thought of a neat feature to implement: an automatic display of the execution time of the last command.
I tried to use PROMPT_COMMAND but anything defined by this variable will only be ran upon the program termination, whereas I need something that clocks the beginning and end of the program to measure the total execution time.
What other options do you suggest?
Thanks all!
|