public function isTimeoutEnabled() { return $this->getTimeout() > 0.0; }
/** * * @return boolean */ public function isTimeout() { if (!$this->config->isTimeoutEnabled()) { return false; } $duration = \microtime(true) - $this->getStartTime(); return $duration > $this->config->getTimeout(); }