Skip to content

Instantly share code, notes, and snippets.

@endigo9740
Last active December 16, 2015 04:09
Show Gist options
  • Save endigo9740/5374980 to your computer and use it in GitHub Desktop.
Save endigo9740/5374980 to your computer and use it in GitHub Desktop.
PHP: MySQL Query Timer
$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