View time taken of last command in Fish shellLinux Mac OS X Fish UNIX Tips & Tricks Tutorials
$CMD_DURATION to get the time taken running the last command.
To make your prompt give you the elapsed time for every command you run in Terminal, add this function in your Fish config file
function fish_prompt; echo "$CMD_DURATION "; end
The prompt will be like that.
I hope this helps you. You know someone will benefit from this, share it with him/her, a friend or colleage.