Skip to content

Instantly share code, notes, and snippets.

@ddre54
Created November 3, 2013 20:57
Show Gist options
  • Save ddre54/7294711 to your computer and use it in GitHub Desktop.
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
(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