lib/SteamCondenser/Servers/GameServer.php
public function updatePing() {
        $this->socket->send(new A2SINFOPacket());
        $startTime = microtime(true);
        $this->socket->getReply();
        $endTime = microtime(true);
        $this->ping = intval(round(($endTime - $startTime) * 1000));

        return $this->ping;
    }
public function updatePing() {
        $this->socket->send(new A2SINFOPacket());
        $startTime = microtime(true);
        $this->socket->getReply();
        $endTime = microtime(true);
        $this->ping = intval(round(($endTime - $startTime) * 1000));

        return $this->ping;
    }
Sends a A2S_INFO request to the server and measures the time needed for
the reply

If this information is vital to you, be sure to call this method
regularly to stay up-to-date.

@return int The latency of this server in milliseconds
@see getPing()
@see initialize()