The cpu efficiency of how to use setTimeout / setInterval to calculate mobile browser?
function fn() {
var start = new Date();
setInterval(function () {
var _s = new Date();
console.info(_s - start);
start = _s;
}, 1000/60)
}
fn()