W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2010

[whatwg] Timeouts and monotonic vs clock time

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 03 Nov 2010 23:21:28 -0400
Message-ID: <4CD226B8.6050008@mit.edu>
On 11/3/10 11:01 PM, and-py wrote:
> * When moving the clock forward, Firefox (4) and Safari (5) act
> clock-based: they immediately fire any interval or timeout whose
> deadline has passed, and continue calling intervals at their period
> thereafter.

Curious.  Firefox 4 in fact uses a delay-like setup for timeouts (used 
to use a clock-based one in 3.6 and earlier)....

Though more precisely, I believe it uses a delay setup on Windows, 
clock_gettime(CLOCK_MONOTONIC) on Linux and Mac.

So which OS you're testing this on might matter.

In case it matters, intervals are implemented in Gecko as simply 
timeouts that reset themselves....

Received on Wednesday, 3 November 2010 20:21:28 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:28 UTC