throw exception in benchmark class if one has not been defined.

This commit is contained in:
Taylor Otwell
2011-06-16 19:52:43 -05:00
parent ab08987247
commit 72e7275fe0

View File

@@ -33,7 +33,7 @@ class Benchmark {
return number_format((microtime(true) - static::$marks[$name]) * 1000, 2); return number_format((microtime(true) - static::$marks[$name]) * 1000, 2);
} }
return 0.0; throw new \Exception("A Benchmark named [$name] has not been started.");
} }
/** /**