get more info about page-loadtime in html-sourcecode of webpage as comment on bottom
This commit is contained in:
parent
910547597b
commit
283e6dd113
1 changed files with 15 additions and 4 deletions
11
index.php
11
index.php
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue