Kraken\Loop\Timer\TimerInterface::getInterval PHP Method

getInterval() public method

Return interval of timer.
public getInterval ( ) : float
return float
    public function getInterval();

Usage Example

Example #1
0
 /**
  * @param TimerInterface $timer
  */
 public function add(TimerInterface $timer)
 {
     $interval = $timer->getInterval();
     $scheduledAt = $interval + $this->getTime();
     $this->timers->attach($timer, $scheduledAt);
     $this->scheduler->insert($timer, -$scheduledAt);
 }
All Usage Examples Of Kraken\Loop\Timer\TimerInterface::getInterval