Skip to content

Instantly share code, notes, and snippets.

@deepal
Created March 11, 2022 20:04
Show Gist options
  • Save deepal/991d656ae400f88a8a24cf5c7dad550d to your computer and use it in GitHub Desktop.
Save deepal/991d656ae400f88a8a24cf5c7dad550d to your computer and use it in GitHub Desktop.
const start = Date.now()
doSomething()
const end = Date.now()
const durationMs = end - start;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment