// // Linux Daemon // /* prevent multiple inclusions */ #ifndef __ClockTimer__ #define __ClockTimer__ /* includes *****************************************************************/ #include "Timer.h" /* defines ******************************************************************/ /* macros *******************************************************************/ /* structs & typedefs *******************************************************/ /* c class definitions ******************************************************/ class ClockTimer : public Timer { // public data public: // protected data protected: // private data private: long m_timeout; // usec // public methods public: // constructors ClockTimer(); ClockTimer(unsigned long usec); // destructor virtual ~ClockTimer(); ClockTimer( const ClockTimer& ); const ClockTimer& operator=( const ClockTimer& ); // public methods int Restart(void); int Start( unsigned long usec ); void Stop(void); unsigned long Remaining(void); int Wait(void); int Sync(void); // Wait()+Restart() // virtual functions // exceptions // static methods // private methods private: // signal catchers (do not override) }; #endif