True Axis Physics SDK 1.2.0.1 Beta Documentation
www.trueaxis.com

Timer.h

00001 //---------------------------------------------------------------------------------
00002 // File Name: Timer.h
00003 // Description:
00004 //
00005 // Copyright (C) 2004 - 2006 True Axis Pty Ltd, Australia. 
00006 // All Rights Reserved.
00007 //
00008 // History:
00009 //      Created File.
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 // TA_TIMER_ENABLED
00053 
00054 #endif // TA_TIMER_H


© Copyright 2004-2006 TRUE AXIS PTY LTD Australia. All rights reserved.