From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22085 invoked from network); 29 Oct 2002 18:09:46 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 29 Oct 2002 18:09:46 -0000 Received: (qmail 16128 invoked by alias); 29 Oct 2002 18:09:37 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17875 Received: (qmail 16111 invoked from network); 29 Oct 2002 18:09:36 -0000 Date: Tue, 29 Oct 2002 10:08:35 -0800 From: Wayne Davison To: Peter Stephenson Cc: Zsh hackers list Subject: Re: PATCH: SECONDS can be floating point Message-ID: <20021029180835.GC3142@scuzzy.blorf.net> References: <23260.1035888025@csr.com> <1390.1035890598@csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1390.1035890598@csr.com> User-Agent: Mutt/1.3.28i 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..