Commit b4aa39ab authored by Taylor Otwell's avatar Taylor Otwell

added benchmarking information to splash screen.

parent 188b0c4f
......@@ -61,6 +61,13 @@
.wrapper h2:first-of-type {
margin-top: 0;
}
.footer {
background-color: #eee;
text-align: right;
font-size: 12px;
color: #bbb;
}
</style>
</head>
<body>
......@@ -75,5 +82,9 @@
<p>Need to learn more? Peruse our <a href="http://laravel.com">wonderful documentation</a>.</p>
</div>
<div class="wrapper footer">
<?php echo System\Benchmark::check('laravel').'ms | '.System\Benchmark::memory(); ?>
</div>
</body>
</html>
\ No newline at end of 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;
}
/**
......
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