Use LARAVEL_START constant to calculate request time.

Suggested by @Kindari.
This commit is contained in:
Franz Liedke 2012-07-30 13:48:55 +03:00
parent 204a6a7980
commit 37dbeef2bb
1 changed files with 1 additions and 10 deletions

View File

@ -181,20 +181,11 @@ public static function referrer()
/**
* Get the timestamp of the time when the request was started.
*
* The value is actually calculated when this function gets first called.
*
* @return int
*/
public static function time()
{
static $time;
if (!isset($time))
{
$time = time();
}
return $time;
return (int) LARAVEL_START;
}
/**