Kraken\Loop\Timer\TimerInterface::getInterval PHP Метод

getInterval() публичный Метод

Return interval of timer.
public getInterval ( ) : float
Результат float
    public function getInterval();

Usage 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