Zsh: measure command durations with the time command, TIMEFMT, and REPORTTIME

· Adamj · Nov. 9, 2026, 8:18 p.m.
Summary
This blog post details how to use Zsh's time command for measuring command durations, offering enhancements over the Bash version. It explains the output format and customization options using TIMEFMT to display various resource usage statistics, and introduces the REPORTTIME feature for automatic reporting of commands exceeding specified CPU time. The author provides practical examples and tips for developers to efficiently measure and analyze command performance.