#include <System_Time.h>
Collaboration diagram for ACE_System_Time:
Public Types | |
enum | Sync_Mode { Jump, Adjust } |
Public Methods | |
ACE_System_Time (const ACE_TCHAR *poolname=0) | |
Default constructor. | |
~ACE_System_Time (void) | |
Default destructor. | |
int | get_master_system_time (ACE_UINT32 &time_out) |
Get the system time of the central time server. | |
int | get_master_system_time (ACE_Time_Value &time_out) |
Get the system time of the central time server. | |
int | sync_local_system_time (ACE_System_Time::Sync_Mode mode) |
Static Public Methods | |
int | get_local_system_time (ACE_UINT32 &time_out) |
int | get_local_system_time (ACE_Time_Value &time_out) |
Private Types | |
typedef ACE_Malloc< ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex > | MALLOC |
typedef ACE_Allocator_Adapter< MALLOC > | ALLOCATOR |
Private Attributes | |
ALLOCATOR * | shmem_ |
Our allocator (used for obtaining system time from shared memory). | |
ACE_TCHAR | poolname_ [MAXPATHLEN+1] |
The name of the pool used by the allocator. | |
long * | delta_time_ |
Pointer to delta time kept in shared memory. |
|
|
|
|
|
Enumeration types to specify mode of synchronization with master clock. Jump will set local system time directly (thus possibly producing time gaps or ambiguous local system times. Adjust will smoothly slow down or speed up the local system clock to reach the system time of the master clock. |
|
Default constructor.
|
|
Default destructor.
|
|
Get the local system time, i.e., the value returned by <ACE_OS::time>. |
|
Get the local system time, i.e., the value returned by <ACE_OS::time>. |
|
Get the system time of the central time server.
|
|
Get the system time of the central time server.
|
|
Synchronize local system time with the central time server using specified mode. |
|
Pointer to delta time kept in shared memory.
|
|
The name of the pool used by the allocator.
|
|
Our allocator (used for obtaining system time from shared memory).
|