00001
00002
00003
00004
00005 #ifndef TIMER_HEADER
00006 #define TIMER_HEADER
00007
00008 #include <ctime>
00009
00010 class Timer
00011 {
00012 public:
00013 Timer();
00014 void Start();
00015 double Stop();
00016
00017 double Dtime() const;
00018
00019 private:
00020 std::clock_t t0;
00021 std::clock_t t1;
00022 };
00023
00024 #endif