function getMini(){
var i=0;
var start=Date.now();
var clock=setTimeout(function(){
iPP;
if(i==1000){
clearTimeout(clock);
var end=Date.now();
console.log((end-start)/i);
}
clock=setTimeout(arguments.callee,0);
},0);
}
getMini();
although I often see and use the form of var timer=setTimeout () z, I don"t quite understand why timers have to be declared with a variable. Is it not clear about time without a variable declaration? clock=setTimeout (arguments.callee,0);
what does this sentence mean, arguments? Callee points to the currently calling function, the anonymous function, but doesn"t the call function once again after all the internal js has been executed? Looking at the code means that clock has been executed 1000 times