report = new DUPX_CTRL_Report(); $this->payload = null; $this->startProcessTime(); } public function startProcessTime() { $this->timeStart = $this->microtimeFloat(); } public function getProcessTime() { $this->timeEnd = $this->microtimeFloat(); $this->report->runTime = $this->timeEnd - $this->timeStart; return $this->report->runTime; } private function microtimeFloat() { list($usec, $sec) = explode(" ", microtime()); return ((float) $usec + (float) $sec); } } class DUPX_CTRL { const NAME_MAX_SERIALIZE_STRLEN_IN_M = 'mstrlim'; public static function renderPostProcessings($string) { return str_replace(array( DUPX_Package::getArchiveFileHash(), DUPX_Package::getPackageHash()) , '[HASH]', $string); } }