Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
$REPORTTIME behaves weirdly on macOS
- X-seq: zsh-workers 49139
- From: Marlon Richert <marlon.richert@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: $REPORTTIME behaves weirdly on macOS
- Date: Wed, 30 Jun 2021 21:50:56 +0300
- Archived-at: <https://zsh.org/workers/49139>
- List-id: <zsh-workers.zsh.org>
% REPORTTIME=0
% sleep 1
sleep 1 0.00s user 0.00s system 0% cpu 1.008 total
% REPORTTIME=1
% sleep 1
% REPORTTIME=0.99
% sleep 1
sleep 1 0.00s user 0.00s system 0% cpu 1.008 total
% REPORTTIME=1.001
% sleep 1
% sleep 2
% REPORTTIME=1.1
% sleep 2
% REPORTTIME=0.99
% sleep 2
sleep 2 0.00s user 0.00s system 0% cpu 2.006 total
%
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author