Skip to content

Instantly share code, notes, and snippets.

@osmianski
Created January 27, 2022 09:04
Show Gist options
  • Select an option

  • Save osmianski/a2cacdabf3b62d848a65049ba31cb5a3 to your computer and use it in GitHub Desktop.

Select an option

Save osmianski/a2cacdabf3b62d848a65049ba31cb5a3 to your computer and use it in GitHub Desktop.
Measuring performance using PHP microtime()
$startedAt = microtime(true);
...
// in milliseconds
$elapsed = (microtime(true) - $startedAt) * 1000;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment