Just add a quick timer to the mix that may be useful:
var timer = function(name) { var start = new Date(); return { stop: function() { var end = new Date(); var time = end.getTime() - start.getTime(); console.log('Timer:', name, 'finished in', time, 'ms'); } } };
Ideally, it will be placed in a class and will not be used as global, as I did, for example, for the purposes above. Using it would be pretty simple:
var t = timer('Some label');
Kenny Sep 16 '14 at 8:45 a.m. 2014-09-16 20:45
source share