Computes the clock offset and round-trip time between client and server.
Uses a simplified NTP-style calculation:
Timestamp (ms) when the PING was sent.
Timestamp (ms) when the PONG was received.
Server timestamp (ms) included in the PONG payload.
An object with offset (ms to add to Date.now() for server time) and rtt (round-trip time in ms).
offset
Date.now()
rtt
Computes the clock offset and round-trip time between client and server.
Uses a simplified NTP-style calculation: