From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#12430: Glitches caused by addition of psec to timers Date: Thu, 13 Sep 2012 12:37:23 -0700 Message-ID: <505235F3.3080909@cs.ucla.edu> References: <50517770.6080207@cs.ucla.edu> <83wqzxvp0x.fsf@gnu.org> <50522A90.2080208@cs.ucla.edu> <83obl9vig0.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347565099 31541 80.91.229.3 (13 Sep 2012 19:38:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2012 19:38:19 +0000 (UTC) Cc: 12430@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 13 21:38:21 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TCFEx-0003xX-AA for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Sep 2012 21:38:19 +0200 Original-Received: from localhost ([::1]:37131 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCFEt-0003Ws-JO for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Sep 2012 15:38:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCFEq-0003WS-Os for bug-gnu-emacs@gnu.org; Thu, 13 Sep 2012 15:38:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCFEn-0007nK-Ip for bug-gnu-emacs@gnu.org; Thu, 13 Sep 2012 15:38:12 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCFEn-0007nG-FE for bug-gnu-emacs@gnu.org; Thu, 13 Sep 2012 15:38:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TCFFd-0008FH-Qn for bug-gnu-emacs@gnu.org; Thu, 13 Sep 2012 15:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Sep 2012 19:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12430 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 12430-submit@debbugs.gnu.org id=B12430.134756510631649 (code B ref 12430); Thu, 13 Sep 2012 19:39:01 +0000 Original-Received: (at 12430) by debbugs.gnu.org; 13 Sep 2012 19:38:26 +0000 Original-Received: from localhost ([127.0.0.1]:60561 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCFF3-0008EP-5K for submit@debbugs.gnu.org; Thu, 13 Sep 2012 15:38:25 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:36220) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCFEw-0008EB-5t for 12430@debbugs.gnu.org; Thu, 13 Sep 2012 15:38:23 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 1A13E39E800D; Thu, 13 Sep 2012 12:37:24 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l0O1S3XmdvJC; Thu, 13 Sep 2012 12:37:23 -0700 (PDT) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id BE9BD39E8007; Thu, 13 Sep 2012 12:37:23 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120828 Thunderbird/15.0 In-Reply-To: <83obl9vig0.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64250 Archived-At: 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.