setClockOffset method

void setClockOffset(
  1. num offset
)

Sets the clock offset, which is the difference between the client's clock and the server's clock, in milliseconds (i.e., serverTime = Date.now() + clockOffset).

Implementation

external void setClockOffset(num offset);