Commit 89032f8a authored by Taylor Otwell's avatar Taylor Otwell

Refactoring the Benchmark class.

parent 24ba87f5
...@@ -28,7 +28,12 @@ class Benchmark { ...@@ -28,7 +28,12 @@ class Benchmark {
*/ */
public static function check($name) public static function check($name)
{ {
return (array_key_exists($name, static::$marks)) ? number_format((microtime(true) - static::$marks[$name]) * 1000, 2) : 0.0; if (array_key_exists($name, static::$marks))
{
return number_format((microtime(true) - static::$marks[$name]) * 1000, 2);
}
return 0.0;
} }
/** /**
......
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