Comos\Qpm\Supervision\Config::isTimeoutEnabled PHP Method

isTimeoutEnabled() public method

public isTimeoutEnabled ( ) : boolean
return boolean
    public function isTimeoutEnabled()
    {
        return $this->getTimeout() > 0.0;
    }

Usage Example

Example #1
0
 /**
  *
  * @return boolean
  */
 public function isTimeout()
 {
     if (!$this->config->isTimeoutEnabled()) {
         return false;
     }
     $duration = \microtime(true) - $this->getStartTime();
     return $duration > $this->config->getTimeout();
 }
All Usage Examples Of Comos\Qpm\Supervision\Config::isTimeoutEnabled