zsh-workers
 help / color / mirror / code / Atom feed
From: Wayne Davison <wayned@users.sourceforge.net>
To: Peter Stephenson <pws@csr.com>
Cc: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: PATCH: SECONDS can be floating point
Date: Tue, 29 Oct 2002 10:08:35 -0800	[thread overview]
Message-ID: <20021029180835.GC3142@scuzzy.blorf.net> (raw)
In-Reply-To: <1390.1035890598@csr.com>

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..


  parent reply	other threads:[~2002-10-29 18:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-28 18:55 Peter Stephenson
2002-10-29 10:40 ` Peter Stephenson
2002-10-29 11:23   ` Peter Stephenson
2002-10-29 17:52     ` Wayne Davison
2002-10-29 18:08     ` Wayne Davison [this message]
2002-10-29 18:13       ` Peter Stephenson
2002-10-30 21:17 ` PATCH: my "SECONDS can be floating point" tweaks Wayne Davison
2002-10-31  5:09   ` Bart Schaefer
2002-10-31 18:53     ` Wayne Davison
2002-10-31 10:34   ` Peter Stephenson
2002-10-31 18:53     ` Wayne Davison

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021029180835.GC3142@scuzzy.blorf.net \
    --to=wayned@users.sourceforge.net \
    --cc=pws@csr.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).