private function tickProcessor() { while (!$this->server->isShutdown()) { $start = microtime(true); $this->tick(); $time = microtime(true); if ($time - $start < 0.01) { @time_sleep_until($time + 0.01 - ($time - $start)); } } $this->tick(); $this->socket->close(); }