00001 // timer.h 00002 // 00003 // Copyright (C) 2001, Chris Laurel <claurel@shatters.net> 00004 // 00005 // This program is free software; you can redistribute it and/or 00006 // modify it under the terms of the GNU General Public License 00007 // as published by the Free Software Foundation; either version 2 00008 // of the License, or (at your option) any later version. 00009 00010 #ifndef _TIMER_H_ 00011 #define _TIMER_H_ 00012 00013 class Timer 00014 { 00015 public: 00016 Timer() {}; 00017 virtual ~Timer() {}; 00018 virtual double getTime() const = 0; 00019 virtual void reset() = 0; 00020 }; 00021 00022 extern Timer* CreateTimer(); 00023 00024 #endif // _TIMER_H_
1.4.1