Skip to content

Instantly share code, notes, and snippets.

@BlackDante
Created July 3, 2016 15:01
Show Gist options
  • Save BlackDante/ada8d1023582f00dd0e7816b7db8f883 to your computer and use it in GitHub Desktop.
Save BlackDante/ada8d1023582f00dd0e7816b7db8f883 to your computer and use it in GitHub Desktop.
var start;
var TICK = 100;
start = null;
setInterval(function () {
if (!start) {
start = +new Date
}
console.log('interval :', +new Date - start);
start = +new Date
}, TICK);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment