Created
January 27, 2022 09:04
-
-
Save osmianski/a2cacdabf3b62d848a65049ba31cb5a3 to your computer and use it in GitHub Desktop.
Measuring performance using PHP microtime()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $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