#ifndef _GYR_CLOCK #define _GYR_CLOCK #include #include #include #include "timestamp.h" class ClockUnadjustable : public std::exception { }; class ClockInitError : public std::exception { }; class Clock { private: protected: size_t _size; size_t _cur_index; Glib::Mutex _mutex; public: virtual TimeStamp inc() = 0; virtual bool adjust(TimeStamp timestamp) = 0; }; #endif