00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef __SYSTIME_H__
00012 #define __SYSTIME_H__
00013 #include "RNPlatform/Inc/DLLExportAPI.h"
00014
00015 #if defined(_XBOX)
00016 #include <xtl.h>
00017 #else
00018 #if defined(_WIN32)
00019 #include <windows.h>
00020 #endif
00021 #endif
00022
00023 #if defined(_PS2)
00024 #include <eekernel.h>
00025 #endif
00026
00027 namespace RNReplicaNet
00028 {
00029
00033 class REPNETEXPORTAPI SysTime
00034 {
00035 public:
00036
00040 SysTime();
00041
00045 virtual ~SysTime();
00046
00050 float FloatTime(void);
00051
00052 private:
00053 #if defined(_WIN32)
00054 double pfreq;
00055 double curtime;
00056 double lastcurtime;
00057 int lowshift;
00058 int sametimecount;
00059 unsigned int oldtime;
00060
00061
00062 LARGE_INTEGER startticktime;
00063 LARGE_INTEGER PerformanceFreq;
00064 #endif
00065 #if defined(_PS2)
00066 u_long mPS2Initial;
00067 #endif
00068 int first;
00069 unsigned int mBaseTickCount;
00070 int mSecBase;
00071 };
00072
00073 }
00074
00075 #endif //#ifndef __SYSTIME_H__