From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Greg Hill Newsgroups: gmane.emacs.help Subject: Computing elapsed time Date: Tue, 30 Jul 2002 11:42:40 -0700 Sender: help-gnu-emacs-admin@gnu.org Message-ID: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Trace: main.gmane.org 1028054575 23302 127.0.0.1 (30 Jul 2002 18:42:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 30 Jul 2002 18:42:55 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17ZbxO-00063j-00 for ; Tue, 30 Jul 2002 20:42:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17Zbxh-00068g-00; Tue, 30 Jul 2002 14:43:13 -0400 Original-Received: from renfield.synergymicro.com ([153.105.4.30] helo=synergymicro.com) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17ZbxB-00066C-00 for ; Tue, 30 Jul 2002 14:42:41 -0400 Original-Received: from synergy.synergy.encinitas.ca.us ([153.105.4.29]) by synergymicro.com (8.9.3/8.9.3) with ESMTP id LAA28393 for ; Tue, 30 Jul 2002 11:44:25 -0700 Original-Received: from [198.17.100.22] (G_Hill_Mac [198.17.100.22]) by synergy.synergy.encinitas.ca.us (8.9.3/8.8.7) with ESMTP id LAA07231 for ; Tue, 30 Jul 2002 11:45:31 -0700 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:738 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:738 The standard Emacs function current-time returns the time since 00:00:00 1/1/1970 as a list of three 16-bit unsigned integers (msw lsw msec), where (msw * 2^16) + lsw gives the number of seconds, and msec gives the additional number of milliseconds. I need to compute the difference between two such timestamps as a single signed integer , accurate to the nearest second (ignoring the milliseconds is ok), and saturated to -134217728 to 134217727 seconds. Does anyone have a function that does that? Thanks. --Greg