Quick one, since I have discovered this only recently via Object.keys(this)
in JSC ( JavaScriptCore )
double = preciseTime()
returns a double number with seconds and microseconds, e.g.
12334556.123456
is basically the same of doing (new Date / 1000) except the precision is up
to 100.
in
What about high resolution time?
http://dvcs.w3.org/hg/webperf/raw-file/tip/specs/HighResolutionTime/Overview.html
David
Le 16/08/2012 13:42, Andrea Giammarchi a écrit :
Quick one, since I have discovered this only recently via
Object.keys(this) in JSC ( JavaScriptCore )
double =
looks like the result would be the same obtained via preciseTime() *
100 ... I just wonder why this is a W3C draft rather than a ECMAScript
one.
meanwhile ... for JSC, Rhino, node.js, and browsers ...
// JSC has it right, kudos!
(typeof preciseTime == undefined function(exports){
var
Le 16/08/2012 14:02, Andrea Giammarchi a écrit :
looks like the result would be the same obtained via preciseTime() *
100 ... I just wonder why this is a W3C draft rather than a
ECMAScript one.
Same question stands for setTimeout/setInterval, setImmediate,
WebWorkers or the crypto API to
fair enough :D
On Thu, Aug 16, 2012 at 1:28 PM, David Bruant bruan...@gmail.com wrote:
Le 16/08/2012 14:02, Andrea Giammarchi a écrit :
looks like the result would be the same obtained via preciseTime() *
100 ... I just wonder why this is a W3C draft rather than a ECMAScript
one.
5 matches
Mail list logo