Last active
December 16, 2015 04:09
-
-
Save endigo9740/5374980 to your computer and use it in GitHub Desktop.
PHP: MySQL Query Timer
This file contains 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
$time_start = microtime(true); | |
// MySQL Query Here... | |
$time_end = microtime(true); | |
$time = $time_end - $time_start; | |
echo "execution time: ".$time." s"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment