Stopwatch should use window.performance.now if available #4312
Labels
type-enhancement
A request for a change that isn't a bug
web-libraries
Issues impacting dart:html, etc., libraries
Milestone
From the mailing list:
Just looking at code using Stopwatch and noticed it doesn't use window.performance.now if it's available. Couldn't find an issue for it so thought to ask what people's thoughts were regarding its use? (hoping for a one-off test rather than a per-use test)
Reference:
http://updates.html5rocks.com/2012/05/requestAnimationFrame-API-now-with-sub-millisecond-precision
jmesserly: this should give precision on the VM (because it uses Clock), but dart2js Clock uses JS Date.now(), which I think is only millisecond precision.
The text was updated successfully, but these errors were encountered: