Commit 72e7275f authored by Taylor Otwell's avatar Taylor Otwell

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

parent ab089872
......@@ -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.");
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment