15 #include <os/OsStatus.h> 16 #include <os/OsTime.h> 17 #include <os/OsNotification.h> 18 #include <utl/UtlString.h> 93 OsStatus
run(
unsigned usecPeriodic) = 0;
160 OsStatus
getPeriodRange(
unsigned* pMinUSecs,
unsigned* pMaxUSecs = NULL);
206 #endif //_MpMMTimer_h_ High-precision periodic timer (MultiMedia timer) base class.
Definition: MpMMTimer.h:44
MMTimerType
Definition: MpMMTimer.h:48
virtual ~MpMMTimer()
Destructor.
Definition: MpMMTimer.cpp:64
MpMMTimer(MMTimerType type)
protected constructor, as this is an abstract class.
Definition: MpMMTimer.h:196
static MpMMTimer * create(MMTimerType type, const UtlString &name="")
Factory method to create timer class instance of the given type.
Definition: MpMMTimer.cpp:43
virtual OsStatus getResolution(unsigned &resolution)
Get resolution of timer in microseconds.
Definition: MpMMTimer.cpp:84
MMTimerType mTimerType
Definition: MpMMTimer.h:184
For use with setNotification()
Definition: MpMMTimer.h:51
virtual OsStatus setNotification(OsNotification *notification)
Set notification for the OsNotification timer type.
Definition: MpMMTimer.cpp:70
virtual OsStatus stop()=0
Stop periodical firing.
virtual OsStatus getPeriodRange(unsigned *pMinUSecs, unsigned *pMaxUSecs=NULL)
Get the range of timer periods that can be generated.
Definition: MpMMTimer.cpp:89
MMTimerType getTimerType() const
Get the type of timer fire.
Definition: MpMMTimer.h:201
For use with waitForNextTick()
Definition: MpMMTimer.h:50
virtual OsStatus waitForNextTick()
Definition: MpMMTimer.cpp:75
virtual OsStatus run(unsigned usecPeriodic)=0
Start periodical firing.