From xemacs-m  Sun Mar  2 20:31:24 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id UAA15908
	for <xemacs-beta@xemacs.org>; Sun, 2 Mar 1997 20:31:22 -0600 (CST)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id SAA10538;
	Sun, 2 Mar 1997 18:42:56 -0800
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: event-timestamp
References: <QQcfdu08997.199703021733@crystal.WonderWorks.COM> 	<199703022043.PAA18770@blight.IntraNet.com> 	<m2afomvvis.fsf@altair.xemacs.org> <QQcfeq14441.199703022309@crystal.WonderWorks.COM>
X-Url: http://www.miranova.com/%7Esteve/
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: Kyle Jones's message of Sun, 2 Mar 1997 18:09:24 -0500 (EST)
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: text/plain; charset=US-ASCII
Date: 02 Mar 1997 18:42:55 -0800
Message-ID: <m2d8thvgpc.fsf@altair.xemacs.org>
Lines: 32
X-Mailer: Gnus v5.4.17/XEmacs 20.1

Kyle Jones writes:

> Steven L Baur writes:
>> Jonathan Edwards writes:
>> [last-input-time]
>> > I do wish this recorded milleseconds like current-time does.
>> 
>> Why?

> I'll be using it to implement run-with-idle-timer as I port timer.el
> from FSF Emacs-land.  The better the resolution of the data, the
> better the resolution of the timer implementation.

That's a persuasive argument.  We have existing lisp code that could
use it.

last-input-time is implemented as a static dotted pair that takes the
32 bit seconds part of a struct timeval and splits it into two 16 bit
quantities.  This must be to get around integer size problems on 32
machines.

A very q&d hack would be to make a sister variable that holds the
microseconds part of the time that is currently being thrown away.
Would that work for you?

A less dirty hack might be to save the time in a 3 element vector with
the first two slots being the current last-input-time and the third
slot being the microseconds.  (I'm not sure how to set that up off the
top of my head).
-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.

