src/SAREhub/Commons/Misc/PeriodicTimer.php
public function update($now)
    {
        if ($now >= ($this->lastCallTime + $this->interval)) {
            $this->lastCallTime = $now;
            $this->callNow();
        }
    }
public function update($now)
    {
        if ($now >= ($this->lastCallTime + $this->interval)) {
            $this->lastCallTime = $now;
            $this->callNow();
        }
    }
public function update ( $ now ) { if ( $ now >= ( $ this -> lastCallTime + $ this -> interval ) ) { $ this -> lastCallTime = $ now ; $ this -> callNow ( ) ; } }
Updates that timer if is after next call its calls callback.
@param int $now
Updates that timer if is after next call its calls callback .