mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-19 08:37:18 +00:00
On PHP5.4+ use REQUEST_TIME_FLOAT instead of microtime for starting measurment of page loading time
This commit is contained in:
@@ -148,6 +148,7 @@ if (date('Ymd',time()) == date('Ymd',$time)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function pageLoadTimeStart() {
|
public function pageLoadTimeStart() {
|
||||||
|
if (isset($_SERVER["REQUEST_TIME_FLOAT"])) return $_SERVER["REQUEST_TIME_FLOAT"];
|
||||||
return microtime(true);
|
return microtime(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user