public function execTime() { $packet = $this->getPacket(); if ($packet['finished'] === 0) { throw new \Exception('The job has not yet ran'); } return $packet['finished'] - $packet['started']; }