Elapsed and execution time display for commands in ZSH Append this to your ~/.zshrc file. function preexec() { timer=$(($(date +%s%0N)/1000000))