nn::nex::RendezVous::GetServerTime Member Function

Syntax

qBool GetServerTime(
     DateTime * pServerTime
) const;

Parameters

Name Description
pServerTime

Return Values

Description

Gets the game server time (UTC).

You can retrieve this after logging in to the game server. The value can still be retrieved even after logging out. Calculates the current time based on the time obtained from the game server when logging in.

The main causes of the time being off are: game server latency at the time of login when getting the game server time, one-way latency from the game server, and client latency when calling Scheduler::Dispatch. In addition, the game server clock is only as accurate as NTP synchronization, so it may be off from UTC by as many as several hundred milliseconds. To distribute the load, each station may connect to a different game server. In such cases, the times are not guaranteed to be the same.

The accuracy of the time also depends on the system clock, so accuracy cannot be guaranteed if a number of days have passed since logging in.

For NEX 3.6 and later, the process is the same as the GetGameServerTime function. The API has been left for compatibility.

Reference

GetGameServerTime

Revision History

2013/12/05
Changed to use the same process as the GetGameServerTime function.
2013/07/23
Added a note that this is not the game server time. Moved to the RendezVous parent class.
2011/10/21
Initial version.

CONFIDENTIAL