Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: $REPORTTIME behaves weirdly on macOS
- X-seq: zsh-workers 49146
- From: Marlon Richert <marlon.richert@xxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: $REPORTTIME behaves weirdly on macOS
- Date: Thu, 1 Jul 2021 23:05:35 +0300
- Archived-at: <https://zsh.org/workers/49146>
- In-reply-to: <CAHYJk3R_cxQ-VYXb8=to=0MfJyg+8ynj2SU4GUC8MtFMtBHNQg@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHLkEDv-gmCs2tg+QaFUb_L78XoGPhJzp66n7+N0X-fBGva-YA@mail.gmail.com> <CAHYJk3R_cxQ-VYXb8=to=0MfJyg+8ynj2SU4GUC8MtFMtBHNQg@mail.gmail.com>
On Thu, Jul 1, 2021 at 2:13 AM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> > What's going on here? It seems that when $REPORTTIME >= 1, no time
> > output is ever produced.
> >
> > The exact values here are unique to sleep, but similar behavior can be
> > observed for other commands, too, albeit at different thresholds.
>
> REPORTTIME
> If nonnegative, commands whose combined user and system execution
> times (measured in seconds) are greater than this value have timing
> statistics printed for them.
>
> Note the difference between elapsed time (total) and cpu time (user +
> system) in your output.
Ah, thanks. And I guess REPORTTIME is rounded down to an integer
value. That would explain it.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author