Ich weiß, ich sagte ja ich habe die Anleitung zu dem Skript wo gefunden, sind ja nur ein paar Zeilen, habs dann eingefügt, es läuft 100pro richtig.
So siehts aus am Ende ($starttime ist am Anfang gesetztes microtime()):
$microtimes = explode(" ", $starttime." ".microtime());
$runtime = ($microtimes[2] + $microtimes[3]) - ($microtimes[0] + $microtimes[1]);
$runtime = sprintf("%0.4f", $runtime);
print $runtime