BWAPI
SPAR/AIModule/SparAIModule/Scheduler/Timer.h
Go to the documentation of this file.
00001 #ifndef TIMER_H
00002 #define TIMER_H
00003 
00004 #include "ITimer.h"
00005 
00009 class Timer
00010 {
00011         void operator= (const Timer &);
00012         Timer (const Timer &);
00013 
00017         ITimer *p_;
00018         static ITimer *Create();
00019         static void Release(const ITimer *) throw();
00020 public:
00021   Timer()
00022                 :p_(Create())
00023         {}
00024 
00025         ~Timer() throw()
00026         {
00027                 Release(p_);
00028         }
00029         typedef ITimer::value_type value_type;
00030         const value_type currentTime();
00031         const value_type timeFrequency();
00032 };
00033 
00034 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines