From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: 12430@debbugs.gnu.org
Subject: bug#12430: Glitches caused by addition of psec to timers
Date: Fri, 14 Sep 2012 09:32:43 +0300 [thread overview]
Message-ID: <83ligdunas.fsf@gnu.org> (raw)
In-Reply-To: <505235F3.3080909@cs.ucla.edu>
> Date: Thu, 13 Sep 2012 12:37:23 -0700
> From: Paul Eggert <eggert@cs.ucla.edu>
> CC: monnier@iro.umontreal.ca, 12430@debbugs.gnu.org
>
> On 09/13/2012 12:19 PM, Eli Zaretskii wrote:
>
> > Not with correct programs that _want_ the sub-microsecond resolution.
>
> I don't see how rounding errors could be avoided. As a trivial example, if I
> write '0.001' in Emacs Lisp, I get a number slightly bigger than 0.001
> due to rounding error, so the underlying OS primitives (which always
> get the ceiling of the delay request) would see two nanoseconds rather
> than the one that I wanted. OK, so it's only a nanosecond off, but
> the point is that Emacs shouldn't be munging the low-order
> bits of users' requests.
I will remember that when I write a hard-realtime application in Emacs
Lisp.
next prev parent reply other threads:[~2012-09-14 6:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-13 6:04 bug#12430: Glitches caused by addition of psec to timers Paul Eggert
2012-09-13 12:49 ` Stefan Monnier
2012-09-13 16:26 ` Paul Eggert
2012-09-13 16:57 ` Eli Zaretskii
2012-09-13 18:48 ` Paul Eggert
2012-09-13 19:19 ` Eli Zaretskii
2012-09-13 19:37 ` Paul Eggert
2012-09-13 20:11 ` Glenn Morris
2012-09-14 6:32 ` Eli Zaretskii [this message]
2012-09-13 21:35 ` Stefan Monnier
2012-09-14 6:32 ` Eli Zaretskii
2012-09-14 13:18 ` Stefan Monnier
2012-09-14 13:44 ` Eli Zaretskii
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=83ligdunas.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=12430@debbugs.gnu.org \
--cc=eggert@cs.ucla.edu \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.