Skip to content

Instantly share code, notes, and snippets.

@hcliff
Created April 25, 2013 22:08
Show Gist options
  • Save hcliff/5463635 to your computer and use it in GitHub Desktop.
Save hcliff/5463635 to your computer and use it in GitHub Desktop.
An example of time/timend
console.time('expensive-function');
setTimeout(function(){
console.timeEnd('expensive-function');
}, 2000);
>>> expensive-function: 2001.000ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment