console.time is not as accurate as performance.now
SgtPooki opened this issue · 2 comments
SgtPooki commented
Run this in your console and see for yourself. The difference is minor, but it is there.
(function(){
var now;
var total;
for(var i = 0; i < 10; i++) {
console.time('test');
console.timeEnd('test');
now = performance.now();
total = performance.now()-now;
console.log(total);
}
})();
bahmutov commented
Good observation. I would appreciate if you forked, changed the timing calls and submitted a pull request. Promise to merge it quickly.
bahmutov commented
cool, merged