diff --git a/system/benchmark.php b/system/benchmark.php index c0d71eb2..01a5ad31 100644 --- a/system/benchmark.php +++ b/system/benchmark.php @@ -33,7 +33,7 @@ class Benchmark { return number_format((microtime(true) - static::$marks[$name]) * 1000, 2); } - return 0.0; + throw new \Exception("A Benchmark named [$name] has not been started."); } /**