Skip to content

Instantly share code, notes, and snippets.

@limistah
Created April 29, 2020 14:33
Show Gist options
  • Save limistah/d7ae32ed5940225adcb99cb3d72148b2 to your computer and use it in GitHub Desktop.
Save limistah/d7ae32ed5940225adcb99cb3d72148b2 to your computer and use it in GitHub Desktop.
const start = Date.now();
const today = new Date().toISOString();
console.log({today});
console.log({start})
setTimeOut(function(){
const end = Date.now();
console.log({setTimeOutTook: (end - start) / 1000 });
}, 3000);
setInterval(function(){
const end = Date.now();
console.log({setIntervalTook: (end - start) / 1000 });
}, 1500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment