Created
March 30, 2017 08:48
-
-
Save xbklairith/e56a12f1452f72cdd12b3411a420f800 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
// easy | |
console.time('sss'); | |
someFunction(); // run whatever needs to be timed in between the statements | |
console.timeEnd('ssss'); | |
// Standard | |
var t0 = performance.now(); | |
doSomething(); | |
var t1 = performance.now(); | |
console.log("Call to doSomething took " + (t1 - t0) + " milliseconds.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment