public function getInterval()
    {
        while (!$this->queue->isEmpty()) {
            list($timer, $timeout) = $this->queue->top();

            if (!$this->timers->contains($timer) || $timeout !== $this->timers[$timer]) {
                $this->queue->extract(); // Timer was removed from queue.
                continue;
            }

            $timeout -= microtime(true);

            if (0 > $timeout) {
                return 0;
            }

            return $timeout;
        }
        
        return null;
    }
public function getInterval()
    {
        while (!$this->queue->isEmpty()) {
            list($timer, $timeout) = $this->queue->top();

            if (!$this->timers->contains($timer) || $timeout !== $this->timers[$timer]) {
                $this->queue->extract(); // Timer was removed from queue.
                continue;
            }

            $timeout -= microtime(true);

            if (0 > $timeout) {
                return 0;
            }

            return $timeout;
        }
        
        return null;
    }
public function getInterval ( ) { while ( ! $ this -> queue -> isEmpty ( ) ) { list ( $ timer , $ timeout ) = $ this -> queue -> top ( ) ; if ( ! $ this -> timers -> contains ( $ timer ) || $ timeout !== $ this -> timers [ $ timer ] ) { $ this -> queue -> extract ( ) ; // Timer was removed from queue. continue ; } $ timeout -= microtime ( true ) ; if ( 0 > $ timeout ) { return 0 ; } return $ timeout ; } return null ; }
Calculates the time remaining until the top timer is ready. Returns null if no timers are in the queue, otherwise
a non-negative value is returned.

@return int|float|null

@internal
Calculates the time remaining until the top timer is ready . Returns null if no timers are in the queue otherwise a non - negative value is returned .