29 #ifndef Pt_System_Timer_h
30 #define Pt_System_Timer_h
32 #include <Pt/System/Api.h>
33 #include <Pt/Signal.h>
34 #include <Pt/Timespan.h>
108 bool isStarted()
const;
112 std::size_t interval()
const;
122 void start(std::size_t interval);
152 {
return _finished; }
157 std::size_t _interval;
167 #endif // Pt_System_Timer_h
Signal & timeout()
Notifies about interval timeouts.
Definition: Timer.h:147
EventLoop * loop()
Returns the used event loop.
Definition: Timer.h:95
Represents time spans in microsecond resolution.
Definition: Timespan.h:62
Multicast Signal to call multiple slots.
Definition: Signal.h:109
Thread-safe event loop supporting I/O multiplexing and Timers.
Definition: EventLoop.h:72
Notifies clients in constant intervals.
Definition: Timer.h:72