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