Created
March 4, 2014 00:29
-
-
Save z-------------/9337739 to your computer and use it in GitHub Desktop.
Test speed of setInterval() against actual time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var I = 1; | |
var interval = setInterval( | |
function(){ | |
console.log(I); | |
I++; | |
},1); | |
setTimeout(function(){clearInterval(interval)},1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment