mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +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() {
|
||||
if (isset($_SERVER["REQUEST_TIME_FLOAT"])) return $_SERVER["REQUEST_TIME_FLOAT"];
|
||||
return microtime(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user