Skip to content

Instantly share code, notes, and snippets.

@jasonsturges
Created November 22, 2020 02:10
Show Gist options
  • Save jasonsturges/2a7c811d4c611b2685ac3408f9bc4922 to your computer and use it in GitHub Desktop.
Save jasonsturges/2a7c811d4c611b2685ac3408f9bc4922 to your computer and use it in GitHub Desktop.
High Resolution Time Stamp
const t0 = performance.now();
Math.log10(n)
const t1 = performance.now();
console.log(`Call took ${t1 - t0} milliseconds.`);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment