Files
Cnomicon/include/libnet++/ClockTimer.h
2021-01-22 10:16:20 -05:00

65 lines
1.3 KiB
C++

//
// 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