00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef TA_TIMER_H
00013 #define TA_TIMER_H
00014
00015 #ifndef TA_COMMON_H
00016 #include "Common.h"
00017 #endif // TA_COMMON_H
00018
00019 #ifdef TA_TIMER_ENABLED
00020
00021 #ifndef TA_TYPES_H
00022 #include "Types.h"
00023 #endif // TA_TYPES_H
00024
00025 #ifndef TA_SINGLETON_H
00026 #include "Singleton.h"
00027 #endif // TA_SINGLETON_H
00028
00029
00030 namespace TA
00031 {
00032
00033 class TACOMMON_CLASS Timer
00034 {
00035 SINGLETON_DEFINE(Timer)
00036 public:
00037
00038 s64 GetTime() const;
00039
00040 private:
00041 bool m_bUseQueryPerformanceCounter;
00042
00043 Timer();
00044 ~Timer();
00045
00046 void Initialise();
00047 void Finalise();
00048 };
00049
00050 };
00051
00052 #endif
00053
00054 #endif
© Copyright 2004-2006 TRUE AXIS PTY LTD Australia. All rights reserved.