added benchmarking information to splash screen.

This commit is contained in:
Taylor Otwell
2011-08-02 22:46:13 -05:00
parent 188b0c4f29
commit b4aa39ab83
2 changed files with 12 additions and 6 deletions

View File

@@ -28,12 +28,7 @@ class Benchmark {
*/
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;
}
/**