correct timings for app object build time

This commit is contained in:
zebardy 2019-11-21 23:07:53 +00:00
parent 80adccb2a0
commit dd5c97c4d2

View File

@ -95,8 +95,11 @@ $appContainer = new \Slim\Container([
return 'GROCY-API-KEY'; return 'GROCY-API-KEY';
} }
]); ]);
fwrite($fp, "!!!App - Container build time in seconds: " . round((microtime(true) - $app_time_start),6) . "\n");
$app_build_time_start = microtime(true);
$app = new \Slim\App($appContainer); $app = new \Slim\App($appContainer);
fwrite($fp, "!!!App - App object build time in seconds: " . round((microtime(true) - $app_time_start),6) . "\n");
#$fp = fopen('/www/data/sql.log', 'a'); #$fp = fopen('/www/data/sql.log', 'a');
#fwrite($fp, "!!!Starting up loading app\n"); #fwrite($fp, "!!!Starting up loading app\n");