D:/simple_rts/src/Timer.cpp

Go to the documentation of this file.
00001 #include "Timer.h"
00002 
00003 template<> ASR::Timer* Singleton<ASR::Timer>::ms_Singleton = 0;
00004 
00005 
00006 namespace ASR
00007 {
00008         // ----------------------------------------------------------------------------
00009         Timer::Timer()
00010                 : mTimeSinceLastFrame ( 0.0f )
00011         {
00012         }
00013 
00014 
00015         // ----------------------------------------------------------------------------
00016         Timer::~Timer()
00017         {
00018 
00019         }
00020 
00021 
00022         // ----------------------------------------------------------------------------
00023         void Timer::setTimeSinceLastFrame (float deltaTime )
00024         {
00025                 mTimeSinceLastFrame = deltaTime;
00026         }
00027 
00028 
00029         // ----------------------------------------------------------------------------
00030         float Timer::getTimeSinceLastFrame () const
00031         {
00032                 return mTimeSinceLastFrame;
00033         }
00034 }

Generated on Sun Jun 25 19:23:43 2006 for Valors End by  doxygen 1.4.7