refactor: page generation time considers real time

Because in environments with $_SERVER["REQUEST_TIME_FLOAT"] unavailable
the time actually only started after Village.php got loaded (which was
AFTER Automation.php kicked in and everything was already DB-loaded),
the start timer was moved more towards the top of each template.
This commit is contained in:
Martin Ambrus
2017-11-18 18:48:48 +01:00
parent fffedc4170
commit 997c143634
23 changed files with 48 additions and 24 deletions
+3 -1
View File
@@ -1,4 +1,7 @@
<?php
include_once("GameEngine/Generator.php");
$start_timer = $generator->pageLoadTimeStart();
//fix by ronix
use App\Utils\AccessLogger;
@@ -7,7 +10,6 @@ include_once("GameEngine/Village.php");
include_once("GameEngine/Chat.php");
AccessLogger::logRequest();
$start_timer = $generator->pageLoadTimeStart();
$alliance->procAlliance($_GET);
if(isset($_GET['newdid'])) {
$_SESSION['wid'] = $_GET['newdid'];