From 8503ffd39b3169c79ea396161bdd737a650dcc61 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Sun, 21 Aug 2011 08:55:19 -0400 Subject: [PATCH] Adding a constant for TIME_START as $_SERVER[REQUEST_TIME] is only accurate to the second. Profilers and timers need ms resolution to be accurate. --- lib/Cake/bootstrap.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Cake/bootstrap.php b/lib/Cake/bootstrap.php index e034b5566..76be5ec55 100644 --- a/lib/Cake/bootstrap.php +++ b/lib/Cake/bootstrap.php @@ -18,6 +18,8 @@ * @since CakePHP(tm) v 0.2.9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ +define('TIME_START', microtime(true)); + if (!defined('E_DEPRECATED')) { define('E_DEPRECATED', 8192); }