Kraken\Channel\Model\Zmq\Connection\ConnectionPool::resetNow PHP Метод

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

public resetNow ( )
    public function resetNow()
    {
        $this->now = function () {
            return round(microtime(true) * 1000);
        };
    }

Usage Example

Пример #1
0
 /**
  * Stop time register.
  *
  * @see ZmqModel::startTimeRegister
  */
 private function stopTimeRegister()
 {
     if ($this->rTimer !== null) {
         $this->rTimer->cancel();
         $this->rTimer = null;
         $this->connectionPool->resetNow();
     }
 }