Created
April 29, 2020 14:33
-
-
Save limistah/d7ae32ed5940225adcb99cb3d72148b2 to your computer and use it in GitHub Desktop.
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
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