from JSC to all others: preciseTime global function ?
andrea.giammarchi at gmail.com
Thu Aug 16 04:42:28 PDT 2012
Quick one, since I have discovered this only recently via Object.keys(this)
double <= preciseTime()
returns a double number with seconds and microseconds, e.g.
is basically the same of doing (new Date / 1000) except the precision is up
in Java/Rhino, System.nanoTime() / 1000000000 would produce similar result,
but I found preciseTime() accurate enough but not as slow as nanoTime
historically is ( greedy in clocks )
Is ES6 considering this function? I find hilarious that all JS benchmarks
out there are basically asking browsers to enable a Java Applet in order to
have better precision ( without considering that both binding and callback
are more expensive than any +new Date call )
Thanks for any sort of answer.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss