zsh-workers
 help / color / mirror / code / Atom feed
From: Wayne Davison <wayned@users.sourceforge.net>
To: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: PATCH: my "SECONDS can be floating point" tweaks
Date: Thu, 31 Oct 2002 10:53:40 -0800	[thread overview]
Message-ID: <20021031185339.GE8814@scuzzy.blorf.net> (raw)
In-Reply-To: <24071.1036060485@csr.com>

On Thu, Oct 31, 2002 at 10:34:45AM +0000, Peter Stephenson wrote:
> Looks OK, although I still vaguely think a struct timeval is more
> appropriate for the raw values (which doesn't fit inside struct param).

That is certainly an option, and it would be easy to tweak my code to
implement this if it is desired (after adding a "struct timeval" to the
param.u union).

In my limited testing the sub-second value was restored exactly, but I
can imagine that certain fractional representations would cause the
sub-second value to get tweaked by a small amount the first time it was
saved and restored (and remain constant after that).  I haven't checked
yet to know for sure how big this tweak could get, but I'll look at it
more closely soon.  (My gut says that the values will be close enough
that the change will not be noticed.)

I've gone ahead and committed my previous patch.

..wayne..


      reply	other threads:[~2002-10-31 18:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-28 18:55 PATCH: SECONDS can be floating point 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
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 [this message]

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=20021031185339.GE8814@scuzzy.blorf.net \
    --to=wayned@users.sourceforge.net \
    --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).