Last active
August 21, 2022 19:55
-
-
Save zisra/c5ba491fa64a8d5e5de67a1499bbe334 to your computer and use it in GitHub Desktop.
Network test
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 before = new Date(); | |
fetch('https://httpbin.org/get').then(()=>{ | |
const after = new Date(); | |
console.log(`${after-before} Milliseconds`) | |
}).catch(()=>{ | |
const after = new Date(); | |
console.log(`Failed in ${after-before} Milliseconds`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment