From f3202403339e94f0186b9ff19e83c7a32fdad198 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 14 Apr 2026 16:33:04 +0200 Subject: implementing against Cinny and iamb some more --- src/App.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/App.php') diff --git a/src/App.php b/src/App.php index 33f71ef..e2376b1 100644 --- a/src/App.php +++ b/src/App.php @@ -6,8 +6,12 @@ use Symfony\Component\Dotenv\Dotenv; class App { + private static float $executionStartTime; + public function __construct() { + self::$executionStartTime = microtime(true); + $dotenv = new Dotenv(); $dotenv->load(dirname(__DIR__) . "/.env"); } @@ -16,4 +20,9 @@ class App { Router::getInstance()->run()->send(); } + + public static function getExectionTime(): float + { + return microtime(true) - self::$executionStartTime; + } } -- cgit v1.2.3