lib/Loop/Loop.php
protected function runTimers()
    {
        $now = microtime(true);
        while (($timer = array_pop($this->timers)) && $timer[0] < $now) {
            $timer[1]();
        }
        // Add the last timer back to the array.
        if ($timer) {
            $this->timers[] = $timer;

            return max(0, $timer[0] - microtime(true));
        }
    }
protected function runTimers()
    {
        $now = microtime(true);
        while (($timer = array_pop($this->timers)) && $timer[0] < $now) {
            $timer[1]();
        }
        // Add the last timer back to the array.
        if ($timer) {
            $this->timers[] = $timer;

            return max(0, $timer[0] - microtime(true));
        }
    }
protected function runTimers ( ) { $ now = microtime ( true ) ; while ( ( $ timer = array_pop ( $ this -> timers ) ) && $ timer [ 0 ] < $ now ) { $ timer [ 1 ] ( ) ; } // Add the last timer back to the array. if ( $ timer ) { $ this -> timers [ ] = $ timer ; return max ( 0 , $ timer [ 0 ] - microtime ( true ) ) ; } }
Runs all pending timers.

After running the timer callbacks, this function returns the number of
seconds until the next timer should be executed.

If there's no more pending timers, this function returns null.

@return float|null
Runs all pending timers .