Skip to content

Instantly share code, notes, and snippets.

@iksi
Created September 29, 2017 20:35
Show Gist options
  • Save iksi/8005da14c1958d04043cbd39fe370f85 to your computer and use it in GitHub Desktop.
Save iksi/8005da14c1958d04043cbd39fe370f85 to your computer and use it in GitHub Desktop.
// put this inside a function to check the time it takes to complete
var start = performance.now()
// do stuff
var duration = performance.now() - start
console.log(duration)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment