PhotonCloudAPI > Photon Cloud Object > Get Server Time Offset

Get Server Time Offset

In real-time games it's often useful to relate game events to a global common timeline,
that's valid for all players and independent from derivations throughout the clients' system times.
The Photon Server's System Time can serve as this reference time. The serverTimeOffset represents
the difference between the client's local system time and the Photon server's system time.
\return Gets the difference between the local uptime and the Photon Server's system time in ms.

Inputs

Target
Photon Cloud Object Object Reference

Outputs

Return Value
Integer

In real-time games it's often useful to relate game events to a global common timeline,
that's valid for all players and independent from derivations throughout the clients' system times.
The Photon Server's System Time can serve as this reference time. The serverTimeOffset represents
the difference between the client's local system time and the Photon server's system time.
\return Gets the difference between the local uptime and the Photon Server's system time in ms.