Browse Source

added elapsed function.

Taylor Otwell 12 years ago
parent
commit
096a419017
1 changed files with 7 additions and 4 deletions
  1. 7 4
      public/index.php

+ 7 - 4
public/index.php

@@ -15,9 +15,14 @@
 */
 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
@@ -43,6 +48,4 @@ $public      = __DIR__;
 | 3... 2... 1... Lift-off!
 |--------------------------------------------------------------------------
 */
-require $laravel.'/laravel.php';
-
-echo (microtime(true) - START_TIME) * 1000;
+require $laravel.'/laravel.php';