0
如何使用setTimeout/setInterval来计算手机浏览器的CPU效率?setTimeout/setInterval手机浏览器来计算CPU效率
function fn() {
var start = new Date();
setInterval(function() {
var _s = new Date();
console.info(_s - start);
start = _s;
}, 1000/60)
}
fn()
它与'css3'有什么关系? –
可能重复(或至少相关):[是否有任何标准的移动设备的Web浏览器在线程睡眠?](http://stackoverflow.com/questions/10739835/are-there-any-standards-for-移动设备的网络浏览器功能于条件方面的线程sleepi) – Bergi