69 long milliseconds = 0,
116 PInt64 milliseconds = 0,
145 operator bool()
const;
196 long milliseconds = 0,
245 PInt64 milliseconds = 0,
326 virtual void OnTimeout();
368 static unsigned Resolution();
416 enum { Stopped, Running, Paused } m_state;
423 PInt64 m_absoluteTime;
427 #include "msos/ptlib/timer.h" 429 #include "unix/ptlib/timer.h" 433 #endif // PTLIB_TIMER_H PAtomicInteger::IntegerType GetNextSerialNumber()
Definition: timer.h:384
bool IsRunning() const
Indicate timer has not expired.
This class defines an arbitrary time interval to millisecond accuracy.
Definition: timeint.h:55
#define PCLASSINFO(cls, par)
Declare all the standard PTLib class information.
Definition: object.h:1049
virtual PInt64 GetMilliSeconds() const
Get the number of milliseconds for the time interval.
Class specialisation for PNotifierTemplate<INT>
virtual void SetInterval(PInt64 milliseconds=0, long seconds=0, long minutes=0, long hours=0, int days=0)
Set the value of the time interval.
void Stop()
Stop the timer.
PTimeInterval GetRemaining() const
Return the real time remaining before expiry.
PTimeInterval m_startTick
Definition: timer.h:149
A class representing a system timer.
Definition: timer.h:181
BOOL PBoolean
Definition: object.h:102
Definition: pprocess.h:106
This class implements an integer that can be atomically incremented and decremented in a thread-safe ...
Definition: critsec.h:171
PTimeInterval GetElapsed() const
Return the real time elapsed since instantiation.
PSimpleTimer & operator=(DWORD milliseconds)
Restart the timer using the specified time value.
IDType GetTimerId() const
Definition: timer.h:383
This class defines a thread of execution in the system.
Definition: thread.h:66
PInt64 GetAbsoluteTime() const
Return absolute time timer will expire.
Definition: timer.h:379
A class represeting a simple timer.
Definition: timer.h:58
PSimpleTimer(long milliseconds=0, int seconds=0, int minutes=0, int hours=0, int days=0)
Create a new timer object which will be expired the specified time interval after "now" in real time...
PAtomicBase::IntegerType IntegerType
Definition: critsec.h:174
bool HasExpired() const
Indicate timer has expired.
unsigned IDType
Definition: timer.h:186