From 1af2ec8ac895766c8ffa8d143f70827003ccd68e Mon Sep 17 00:00:00 2001 From: Felix Date: Tue, 26 Apr 2022 09:02:57 +0200 Subject: [PATCH] Add "page generated in .. seconds" --- Backend/Views/Base/LayoutView.php | 3 ++- index.php | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Backend/Views/Base/LayoutView.php b/Backend/Views/Base/LayoutView.php index c3116da..b52bc9f 100644 --- a/Backend/Views/Base/LayoutView.php +++ b/Backend/Views/Base/LayoutView.php @@ -21,6 +21,7 @@ public function render(): void { color: var(--on-bg); background-color: var(--bg); } + footer { text-align: center } @media screen and (prefers-color-scheme: dark) { :root { --on-bg: #fff; --bg: #151515; } } @@ -38,7 +39,7 @@ public function render(): void { diff --git a/index.php b/index.php index e1b5ffd..39d7577 100644 --- a/index.php +++ b/index.php @@ -2,8 +2,7 @@ declare(strict_types = 1); -// $GLOBALS['start'] = microtime(true); // Stop execution time -// echo '

[Controller] Execution time router: ' . microtime(true) - $GLOBALS['start'] . ' seconds

'; +$GLOBALS['start'] = microtime(true); // Meassure execution time -> look in Layout