[webkit-dev] Proposed Timer API
Justin Haygood
jhaygood at reaktix.com
Wed Oct 1 09:59:25 PDT 2008
-----Original Message-----
From: webkit-dev-bounces at lists.webkit.org
[mailto:webkit-dev-bounces at lists.webkit.org] On Behalf Of Maciej Stachowiak
Sent: Wednesday, October 01, 2008 1:02 PM
To: Darin Adler
Cc: WebKit Development
Subject: Re: [webkit-dev] Proposed Timer API
On Oct 1, 2008, at 9:58 AM, Darin Adler wrote:
> On Oct 1, 2008, at 9:16 AM, Mike Belshe wrote:
>
>> If you're going to propose a new API designed for hi-res timers, it
>> ought to use units of microseconds instead of milliseconds.
>
> Or units of seconds, perhaps? Since JavaScript numbers are already
> floating point.
That's what I would propose. Then browsers can offer greater precision
in the future without having to redesign the API.
---
Updating now. Units of seconds. Precisision is browser defined, but will be
higher precision (or same precision) as setInterval/setTimeout.
More information about the webkit-dev
mailing list