Last active
July 6, 2016 08:52
-
-
Save karlpokus/35c8ccc4afb06731d2ca41cf68c32271 to your computer and use it in GitHub Desktop.
Timing execution time in server or browser
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
// start | |
console.time('foo'); | |
// do stuff | |
// end | |
console.timeEnd('foo'); | |
// log output will be in ms -> foo: 268ms |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Handy module for node