From dd5c97c4d2d4c6f7bd9154351cc3d15366ac1033 Mon Sep 17 00:00:00 2001 From: zebardy Date: Thu, 21 Nov 2019 23:07:53 +0000 Subject: [PATCH] correct timings for app object build time --- app.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.php b/app.php index 34161f90..54e91bca 100644 --- a/app.php +++ b/app.php @@ -95,8 +95,11 @@ $appContainer = new \Slim\Container([ 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); +fwrite($fp, "!!!App - App object build time in seconds: " . round((microtime(true) - $app_time_start),6) . "\n"); #$fp = fopen('/www/data/sql.log', 'a'); #fwrite($fp, "!!!Starting up loading app\n");