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
19
index.php
19
index.php
|
@ -1,4 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
|
$time = microtime();
|
||||||
|
$time = explode(' ', $time);
|
||||||
|
$time = $time[1] + $time[0];
|
||||||
|
$start = $time;
|
||||||
|
|
||||||
include "config/config.php";
|
include "config/config.php";
|
||||||
include "include/tools.php";
|
include "include/tools.php";
|
||||||
include "include/functions.php";
|
include "include/functions.php";
|
||||||
|
@ -29,10 +34,16 @@ include "include/lh.php";
|
||||||
?>
|
?>
|
||||||
<div class="panel panel-info">
|
<div class="panel panel-info">
|
||||||
<?php
|
<?php
|
||||||
date_default_timezone_set("UTC");
|
date_default_timezone_set("UTC");
|
||||||
$datum = date("d.m.Y");
|
$datum = date("d.m.Y");
|
||||||
$uhrzeit = date("H:i:s");
|
$uhrzeit = date("H:i:s");
|
||||||
echo "Last Update $datum, $uhrzeit";
|
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>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in a new issue