Skip to content

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 ​

ParameterType
serverMsnumber
rttMsnumber
nownumber

Returns ​

void

Released under the MIT License.