from JSC to all others: preciseTime global function ?

2012-08-16 Thread Andrea Giammarchi
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

Re: from JSC to all others: preciseTime global function ?

2012-08-16 Thread David Bruant
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 =

Re: from JSC to all others: preciseTime global function ?

2012-08-16 Thread Andrea Giammarchi
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

Re: from JSC to all others: preciseTime global function ?

2012-08-16 Thread David Bruant
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

Re: from JSC to all others: preciseTime global function ?

2012-08-16 Thread Andrea Giammarchi
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.