Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: SECONDS can be floating point
- X-seq: zsh-workers 17875
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: PATCH: SECONDS can be floating point
- Date: Tue, 29 Oct 2002 10:08:35 -0800
- Cc: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- In-reply-to: <1390.1035890598@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <23260.1035888025@xxxxxxx> <1390.1035890598@xxxxxxx>
On Tue, Oct 29, 2002 at 11:23:18AM +0000, Peter Stephenson wrote:
> The problem was that if you made SECONDS local, then on return to the
> parent function, the time spent in the lower function didn't appear in
> the value of SECONDS
Are you sure this was a problem? The internal value is a start time,
and the value returned is relative to "now", so it seems to me that as
long as the parent's SECONDS value is saved/restored literally when
localized that there is no need to fudge the value at all. Perhaps the
bug is that the value is being saved/restored relative to "now"? (I
haven't looked at the local-variable code enough to know for sure.)
..wayne..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author