Skip to content

Instantly share code, notes, and snippets.

@karlpokus
Last active July 6, 2016 08:52
Show Gist options
  • Select an option

  • Save karlpokus/35c8ccc4afb06731d2ca41cf68c32271 to your computer and use it in GitHub Desktop.

Select an option

Save karlpokus/35c8ccc4afb06731d2ca41cf68c32271 to your computer and use it in GitHub Desktop.
Timing execution time in server or browser
// start
console.time('foo');
// do stuff
// end
console.timeEnd('foo');
// log output will be in ms -> foo: 268ms
@karlpokus
Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment