SysTime.h

00001 /* START_LICENSE_HEADER
00002 
00003 Copyright (C) 2000 Martin Piper, original design and program code
00004 Copyright (C) 2001 Replica Software
00005 
00006 This program file is copyright (C) Replica Software and can only be used under license.
00007 For more information visit: http://www.replicanet.com/
00008 Or email: info@replicanet.com
00009 
00010 END_LICENSE_HEADER */
00011 #ifndef __SYSTIME_H__
00012 #define __SYSTIME_H__
00013 #include "RNPlatform/Inc/DLLExportAPI.h"
00014 
00015 #if defined(_XBOX)
00016 #include <xtl.h>            // For XBox builds
00017 #else
00018 #if defined(_WIN32)
00019 #include <windows.h>        // For Windows builds
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 
00055     static unsigned int GetTickCount(void);
00056 
00057 private:
00058 #if defined(_WIN32)
00059     double      pfreq;
00060     double      curtime;
00061     double      lastcurtime;
00062     int         lowshift;
00063     int         sametimecount;
00064     unsigned int    oldtime;
00065 
00066 
00067     LARGE_INTEGER startticktime;
00068     LARGE_INTEGER   PerformanceFreq;
00069 #endif
00070 #if defined(_PS2)
00071     u_long mPS2Initial;
00072 #endif
00073     int         first;
00074     unsigned int mBaseTickCount;
00075     int     mSecBase;
00076 };
00077 
00078 } // namespace RNReplicaNet
00079 
00080 #endif //#ifndef __SYSTIME_H__

Generated on Sat Jun 28 22:02:16 2008 for ReplicaNet and RNLobby by  doxygen 1.5.3