How to find my code execution time?
I am using the below snippet.
I am not happy with that?
list ($msec, $sec) = explode(\' \', microtime());
$mi
Thanks for sharing your information.
The below one also LITTLE BIT near of my solution.
function microtime_float() {
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
$time_start = microtime_float();
SOURCE CODE
$time_end = microtime_float();
$time = round($time_end - $time_start, 4);
echo "Last uncached content render took $time seconds";