[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12430: Glitches caused by addition of psec to timers
From: |
Paul Eggert |
Subject: |
bug#12430: Glitches caused by addition of psec to timers |
Date: |
Thu, 13 Sep 2012 12:37:23 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0 |
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.
- bug#12430: Glitches caused by addition of psec to timers, Paul Eggert, 2012/09/13
- bug#12430: Glitches caused by addition of psec to timers, Stefan Monnier, 2012/09/13
- bug#12430: Glitches caused by addition of psec to timers, Eli Zaretskii, 2012/09/14
- bug#12430: Glitches caused by addition of psec to timers, Stefan Monnier, 2012/09/14
- bug#12430: Glitches caused by addition of psec to timers, Eli Zaretskii, 2012/09/14