|
Anasazi Version of the Day
|
00001 #ifndef __TSQR_TrivialTimer_hpp 00002 #define __TSQR_TrivialTimer_hpp 00003 00004 #include <string> 00005 00008 00009 namespace TSQR { 00010 00013 class TrivialTimer { 00014 public: 00019 TrivialTimer (const std::string& theName, bool doStart = false); 00020 00024 void start (bool reset = false); 00025 00029 double stop (); 00030 00033 bool isRunning () const { return isRunning_; } 00034 00035 const std::string& name() const { return name_; } 00036 00037 private: 00040 std::string name_; 00041 00044 bool isRunning_; 00045 00048 static void verifyConcept(); 00049 }; 00050 00051 } // namespace TSQR 00052 00053 #endif // __TSQR_TrivialTimer_hpp
1.7.4