How to measure execution time of PHP script?
Nihil novi but still useful

$time = microtime(true);
//Put your code here
$time = microtime(true) - $time;
echo 'Script executed in: ' . $time . ' sec';
$time = microtime(true);
//Put your code here
$time = microtime(true) - $time;
echo 'Script executed in: ' . $time . ' sec';
Comments