MyGUI  3.2.1
MyGUI_Timer.h
Go to the documentation of this file.
00001 /*
00002  * This source file is part of MyGUI. For the latest info, see http://mygui.info/
00003  * Distributed under the MIT License
00004  * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
00005  */
00006 
00007 #ifndef __MYGUI_TIMER_H__
00008 #define __MYGUI_TIMER_H__
00009 
00010 #include "MyGUI_Prerequest.h"
00011 
00012 namespace MyGUI
00013 {
00014 
00015     class MYGUI_EXPORT Timer
00016     {
00017     public:
00018         Timer();
00019 
00020         void reset();
00021         unsigned long getMilliseconds();
00022 
00023     private:
00024         unsigned long getCurrentMilliseconds();
00025 
00026     private:
00027         unsigned long mTimeStart;
00028     };
00029 
00030 } // namespace MyGUI
00031 
00032 #endif // __MYGUI_TIMER_H__