interface ICoordinatedClock (Niantic.ARDK.Networking.Clock.ICoordinatedClock)
Overview
A coordinated clock that synchronizes with a server sided clock so that all peers within the same networking session the same timestamp. More…
interface ICoordinatedClock { // properties long CurrentCorrectedTime; CoordinatedClockTimestampQuality SyncStatus; }; // direct descendants class LocalCoordinatedClock;
Detailed Documentation
A coordinated clock that synchronizes with a server sided clock so that all peers within the same networking session the same timestamp.
Properties
long CurrentCorrectedTime
The current server synchronized time
Note
CurrentCorrectedTime itself has no guarantees of epoch or standard - it is a timestamp in milliseconds. It is better used as a stopwatch or timer, rather than used to represent a real world time (though this can be done by locally comparing it to another known clock).
CoordinatedClockTimestampQuality SyncStatus
The quality of the timestamp returned by this CoordinatedClock