bug-gnu-emacs
[Top][All Lists]
Advanced

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]