Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

SysTime.h

00001 /* START_LICENSE_HEADER
00002 
00003 Copyright (C) 2000 Martin Piper, original design and program code
00004 Copyright (C) 2001-2005 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 
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 } // namespace RNReplicaNet
00074 
00075 #endif //#ifndef __SYSTIME_H__

Generated on Sun Oct 30 01:12:31 2005 for Platform by  doxygen 1.4.1