Created
November 3, 2013 20:57
-
-
Save ddre54/7294711 to your computer and use it in GitHub Desktop.
This is the timeout code to create an interval in JavaScript, taking care that the execution of each call to the interval will take more accurate the exactly amount of time specified in the timer
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
(function(){ | |
// do some stuff | |
setTimeout(arguments.callee, 60000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment