Update Generator.php

This commit is contained in:
Shadow
2017-01-07 12:20:35 +02:00
committed by GitHub
parent ffc0b79d59
commit 0bfc9d4812
+8 -2
View File
@@ -149,11 +149,17 @@ if (date('Ymd',time()) == date('Ymd',$time)) {
public function pageLoadTimeStart() {
if (isset($_SERVER["REQUEST_TIME_FLOAT"])) return $_SERVER["REQUEST_TIME_FLOAT"];
return microtime(true);
$starttime = microtime(true);
$startarray = explode(" ", $starttime);
//$starttime = $startarray[1] + $startarray[0];
return $startarray[0];
}
public function pageLoadTimeEnd() {
return microtime(true);
$endtime = microtime(true);
$endarray = explode(" ", $endtime);
//$endtime = $endarray[1] + $endarray[0];
return $endarray[0];
}
};