/** * beforeRender Callback * * @return array **/ function beforeRender(&$controller) { $this->startTime = DebugKitDebugger::requestStartTime(); $this->currentTime = DebugKitDebugger::requestTime(); $out = array(); foreach ($this->logFiles as $log) { $file = LOGS . $log; if (!file_exists($file)) { continue; } $out[$log] = $this->_parseFile($file); } return $out; }
/** * Get the total execution time until this point * * @access public * @return float elapsed time in seconds since script start. * @static */ function requestTime() { $start = DebugKitDebugger::requestStartTime(); $now = getMicroTime(); return $now - $start; }
/** * Get the total execution time until this point * * @return float elapsed time in seconds since script start. * @static */ public static function requestTime() { $start = DebugKitDebugger::requestStartTime(); $now = microtime(true); return ($now - $start); }