#include <ace/System_Time.h>
class ACE_System_Time {
public:
enum Sync_Mode { Jump, Adjust };
ACE_System_Time (LPCTSTR poolname = 0);
~ACE_System_Time (void);
static int get_local_system_time (ACE_UINT32 &time_out);
static int get_local_system_time (ACE_Time_Value &time_out);
int get_master_system_time (ACE_UINT32 &time_out);
int get_master_system_time (ACE_Time_Value &time_out);
int sync_local_system_time (ACE_System_Time::Sync_Mode mode);
private:
typedef ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex> MALLOC;
typedef ACE_Allocator_Adapter<MALLOC> ALLOCATOR;
ALLOCATOR *shmem_;
TCHAR poolname_[MAXPATHLEN + 1];
long *delta_time_;
};
ACE_System_Time (LPCTSTR poolname = 0);
~ACE_System_Time (void);
static int get_local_system_time (ACE_UINT32 &time_out);
ACE_OS::time
.
static int get_local_system_time (ACE_Time_Value &time_out);
ACE_OS::time
.
int get_master_system_time (ACE_UINT32 &time_out);
int get_master_system_time (ACE_Time_Value &time_out);
int sync_local_system_time (ACE_System_Time::Sync_Mode mode);
typedef ACE_Malloc <ACE_MMAP_MEMORY_POOL, ACE_Null_Mutex> MALLOC;
typedef ACE_Allocator_Adapter<MALLOC> ALLOCATOR;
ALLOCATOR *shmem_;
TCHAR poolname_[MAXPATHLEN + 1];
long *delta_time_;