From b4aa39ab83f1c23f92cc4dd96243bfa9acda8ab6 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 2 Aug 2011 22:46:13 -0500 Subject: [PATCH] added benchmarking information to splash screen. --- application/views/home/index.php | 11 +++++++++++ system/benchmark.php | 7 +------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/application/views/home/index.php b/application/views/home/index.php index 6f8a0371..c3b7f11d 100644 --- a/application/views/home/index.php +++ b/application/views/home/index.php @@ -61,6 +61,13 @@ .wrapper h2:first-of-type { margin-top: 0; } + + .footer { + background-color: #eee; + text-align: right; + font-size: 12px; + color: #bbb; + } @@ -75,5 +82,9 @@

Need to learn more? Peruse our wonderful documentation.

+ + \ No newline at end of file diff --git a/system/benchmark.php b/system/benchmark.php index 01a5ad31..4ac83130 100644 --- a/system/benchmark.php +++ b/system/benchmark.php @@ -28,12 +28,7 @@ public static function start($name) */ public static function check($name) { - if (array_key_exists($name, static::$marks)) - { - return number_format((microtime(true) - static::$marks[$name]) * 1000, 2); - } - - throw new \Exception("A Benchmark named [$name] has not been started."); + return (array_key_exists($name, static::$marks)) ? number_format((microtime(true) - static::$marks[$name]) * 1000, 2) : 0.0; } /**