On Jun 24, 2008, at 7:47 AM, Sam Steingold wrote:
I would like all long-running commands to be auto-timed.
i.e., all commands I type at the prompt should be run as if with "time"
built-in, but if the real or user time is smaller than some value
(specified by the user in an environment variable), the timing output
should be omitted.
In ZSH, that's obtainable via the REPORTTIME env variable:
REPORTTIME
If nonnegative, commands whose combined user and system execu-
tion times (measured in seconds) are greater than this value
have timing statistics printed for them.