Allowing return fractional as well as integral bits (for submillisecond timing)

Douglas Crockford douglas at
Sat Aug 7 14:16:24 PDT 2010

  On 11:59 AM, Paul Biggar wrote:
> In SpiderMonkey, we can very easily make return fractional
> bits, which allows sub-millisecond timing. I've been using this for a
> few weeks, and it's been very useful for my small purposes (more
> accurate benchmarks). We're now looking at making this a feature of
> According to Brendan's reading of the standard, this is allowed,
> partially due to being underspecified. The question is
> whether this is a good idea, or if we should shelve it pending the
> nanoAge proposal, or propose a
> Date.nowWithFractionalBitsAndABetterName() instead?
> The Mozilla bug is here:
> Comments appreciated.
I think this is a good idea. I like this a lot.

More information about the es-discuss mailing list