/** * Start a stopwatch * * @return integer Execution id */ public function markExecution() { TimeTracker::start('SchedulerTaskMeasure'); $this->initialize(); return parent::markExecution(); }
/** * Executes the wget command * * @return string */ public function execute() { $command = $this->buildCommand(); TimeTracker::start($command); $this->logger->debug('Executing WGet command ' . $command, __CLASS__); exec($command, $outputLines, $returnVar); $this->logger->debug('Called WGet command returned status ' . $returnVar, __CLASS__, array('time' => TimeTracker::stop($command))); return implode('\\n', $outputLines); }