at the start of your script:
<?php
$begin = microtime();
$split = explode(" ", $begin);
$begin_precies = $split[0];
$begin_seconden = date("U");
$begin_tijd = $begin_precies + $begin_seconden;
?>
at the end of your script:
<?php
$einde = microtime();
$split = explode(" ", $einde);
$eind_precies = $split[0];
$eind_seconden = date("U");
$eind_tijd = $eind_precies + $eind_seconden;
$verschil = $eind_tijd - $begin_tijd;
$verschil = round($verschil,5);
echo " loading time of this page was: $verschil seconds";
?>
didn't bother translating it, except for the echo line, but you get the picture I hope 😉