Commit 096a4190 authored by Taylor Otwell's avatar Taylor Otwell

added elapsed function.

parent fb811af5
...@@ -15,9 +15,14 @@ ...@@ -15,9 +15,14 @@
*/ */
define('START_TIME', microtime(true)); define('START_TIME', microtime(true));
function elapsed()
{
return number_format((microtime(true) - START_TIME) * 1000, 2);
}
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Where Am I? | Laravel Installation Paths
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| Here you may specify the location of the various Laravel framework | Here you may specify the location of the various Laravel framework
...@@ -44,5 +49,3 @@ $public = __DIR__; ...@@ -44,5 +49,3 @@ $public = __DIR__;
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
*/ */
require $laravel.'/laravel.php'; require $laravel.'/laravel.php';
\ No newline at end of file
echo (microtime(true) - START_TIME) * 1000;
\ No newline at end of file
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