LAMA
|
00001 00034 #ifndef LAMA_TIMER_HPP_ 00035 #define LAMA_TIMER_HPP_ 00036 00037 // for dll_import 00038 #include <lama/config.hpp> 00039 00040 #include <string> 00041 00042 namespace lama 00043 { 00044 00048 class LAMA_DLL_IMPORTEXPORT Timer 00049 { 00050 public: 00051 00055 Timer(); 00056 00060 virtual ~Timer(); 00061 00067 virtual void start(const std::string& timerId) = 0; 00068 00076 virtual void stop(const std::string& timerId) = 0; 00077 00084 virtual double getTime(const std::string& timerId) = 0; 00085 00092 virtual void stopAndReset(const std::string& timerId) = 0; 00093 }; 00094 00095 } // namespace lama 00096 00097 #endif // LAMA_TIMER_HPP_