52 #define PTIMER_OPERATORS(cls) \
53 cls & operator=( int16_t rhs) { this->SetInterval(rhs); return *this; } \
54 cls & operator=(uint16_t rhs) { this->SetInterval(rhs); return *this; } \
55 cls & operator=( int32_t rhs) { this->SetInterval(rhs); return *this; } \
56 cls & operator=(uint32_t rhs) { this->SetInterval(rhs); return *this; } \
57 cls & operator=( int64_t rhs) { this->SetInterval(rhs); return *this; } \
58 cls & operator=(uint64_t rhs) { this->SetInterval(rhs); return *this; } \
59 cls & operator=(const PTimeInterval & rhs) { this->SetInterval(rhs.GetMilliSeconds()); return *this; } \
86 long milliseconds = 0,
133 PInt64 milliseconds = 0,
163 operator bool()
const;
210 long milliseconds = 0,
399 typedef std::map<PIdGenerator::Handle, PTimer *> TimerMap;
424 #include "msos/ptlib/timer.h"
426 #include "unix/ptlib/timer.h"
476 virtual const char *
GetGroup(
const Work_T & )
const {
return NULL; }
485 class Base_T = Work_T,
508 class Base_T = Work_T,
535 class Base_T = Work_T,
565 class Base_T = Work_T,
591 #endif // PTLIB_TIMER_H