get more info about page-loadtime in html-sourcecode of webpage as comment on bottom

This commit is contained in:
dg9vh 2016-05-04 21:32:44 +02:00
parent 910547597b
commit 283e6dd113

View file

@ -1,4 +1,9 @@
<?php
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$start = $time;
include "config/config.php";
include "include/tools.php";
include "include/functions.php";
@ -33,6 +38,12 @@ include "include/lh.php";
$datum = date("d.m.Y");
$uhrzeit = date("H:i:s");
echo "Last Update $datum, $uhrzeit";
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$finish = $time;
$total_time = round(($finish - $start), 4);
echo '<!--Page generated in '.$total_time.' seconds.-->';
?>
</div>
</body>