Prints current time whenever you start executing a shell command, and the elapsed time in the end if the execution took more than 0.2 s.
Example:
pyrtsa ~ $ sleep 0.1 && echo 'Done waiting.'
10:43:34
Done waiting.
pyrtsa ~ $ sleep 1 && echo 'Done waiting.'
10:43:37
Done waiting.
(1.06 s)
pyrtsa ~ $
Usage: Add the following to your .bash_profile or .bashrc:
source ~/.prompt-time
prompt-time on(On macOS, requires gdate, i.e. brew install coreutils.)