zsh has an option to automatically print the time of commands exceeding a threshold. See here for a brief example: <a href="http:&#x2F;&#x2F;nuclearsquid.com&#x2F;writings&#x2F;reporttime-in-zsh&#x2F;" rel="nofollow">http:&#x2F;&#x2F;nuclearsquid.com&#x2F;writings&#x2F;reporttime-in-zsh&#x2F;</a>