public function getCurrentTimeSpent() { $discovery = null !== $this->discoveryTime ? $this->discoveryTime : 0.0; $postProcess = null !== $this->postProcessingTime ? $this->postProcessingTime : 0.0; return $discovery + $postProcess; }
/** * {@inheritdoc} */ public function timeLeft() : bool { return $this->statistics->getCurrentTimeSpent() < $this->config()->limit(); }