Skip to content

Instantly share code, notes, and snippets.

@ccramiro
Created February 13, 2016 21:57
Show Gist options
  • Select an option

  • Save ccramiro/cb09f820f9e3449393f0 to your computer and use it in GitHub Desktop.

Select an option

Save ccramiro/cb09f820f9e3449393f0 to your computer and use it in GitHub Desktop.
var t0 = performance.now();
function();
var t1 = performance.now();
console.log("Call to function took " + (t1 - t0) + " milliseconds.")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment