Created
September 10, 2013 10:20
-
-
Save amitavroy/6507518 to your computer and use it in GitHub Desktop.
Calculate Page load time
This file contains hidden or 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
<script> | |
var t0 = window.performance.now(); | |
</script> | |
<script> | |
var t1 = window.performance.now(); | |
console.log("Call to doSomething took " + (t1 - t0) + " milliseconds.") | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment