|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NLNET::_CUniTime Class ReferenceThis class provide a independant universal time system.
More...
#include <unitime.h>
Inheritance diagram for NLNET::_CUniTime:
List of all members.
Detailed Description
This class provide a independant universal time system.
-
Author:
-
Vianney Lecroart , Nevrax France
-
Date:
-
2000
Definition at line 47 of file unitime.h.
Member Function Documentation
const char * NLNET::_CUniTime::getStringUniTime |
( |
NLMISC::TTime |
ut |
) |
[static] |
|
const char * NLNET::_CUniTime::getStringUniTime |
( |
|
) |
[static] |
|
|
Return the time in a string format to be display.
Definition at line 88 of file unitime.cpp.
References nlstop. |
TTime NLNET::_CUniTime::getUniTime |
( |
|
) |
[static] |
|
|
Return the time in millisecond. This time is the same on all computers at the same moment.
Definition at line 75 of file unitime.cpp.
References nlstop, and NLMISC::TTime. |
void NLNET::_CUniTime::setUniTime |
( |
NLMISC::TTime |
uTime |
) |
[static] |
|
void NLNET::_CUniTime::simulate |
( |
|
) |
[inline, static] |
|
void NLNET::_CUniTime::syncUniTimeFromServer |
( |
CCallbackClient * |
client |
) |
[static] |
|
|
Call this functions in the init part of the client side to synchronize between client and shard.
client is the connection between the client and the front end. The connection must be established before calling this function.
Definition at line 313 of file unitime.cpp.
References nlstop. |
|
You need to call this function before calling getUniTime or an assert will occured.
This function will connect to the time service and synchronize your computer. This function assumes that all services run on server that are time synchronized with NTP for example. If addr is NULL, the function will connect to the Time Service via the Naming Service. In this case, the CNamingClient must be connected to a Naming Service. This function can be called *ONLY* by services that are inside of the shard. Don't use it for a client or a service outside of the shard.
Definition at line 156 of file unitime.cpp.
References addr, and nlstop. |
Member Data Documentation
bool NLNET::_CUniTime::_Simulate = false [static, private]
|
|
TTime NLNET::_CUniTime::_SyncLocalTime = 0 [static, private]
|
|
TTime NLNET::_CUniTime::_SyncUniTime = 0 [static, private]
|
|
bool NLNET::_CUniTime::Sync = false [static]
|
|
The documentation for this class was generated from the following files:
|
|