1681-engine / index / noteServerTime
Function: noteServerTime() ​
ts
function noteServerTime(
serverMs,
rttMs,
now?
): void;Defined in: src/net/serverClock.ts:37
A server timestamp serverMs taken halfway through an exchange that took rttMs to come back: the server's clock then stood at serverMs + rttMs / 2 of this device's now.
Parameters ​
| Parameter | Type |
|---|---|
serverMs | number |
rttMs | number |
now | number |
Returns ​
void