From 5c29be4f449124f6a2fec82491408af1eca91b8a Mon Sep 17 00:00:00 2001 From: zebardy Date: Thu, 21 Nov 2019 23:44:45 +0000 Subject: [PATCH] correct timings for app route build time --- app.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.php b/app.php index 54e91bca..9880d673 100644 --- a/app.php +++ b/app.php @@ -109,8 +109,10 @@ fwrite($fp, "!!!App - App object build time in seconds: " . round((microtime(tru #phpinfo(); +$route_load_time_start = microtime(true); // Load routes from separate file require_once __DIR__ . '/routes.php'; +fwrite($fp, "!!!App - Route load time in seconds: " . round((microtime(true) - $route_load_time_start),6) . "\n"); fwrite($fp, "!!!App - App build time in seconds: " . round((microtime(true) - $app_time_start),6) . "\n"); #$fp = fopen('/config/data/sql.log', 'a');