QDaq
0.2.6
Qt-based Data Aqcuisition
|
A timer thread class. More...
#include <qtimerthread.h>
Inherits QThread.
Inherited by QDaqLoop::LoopTimerThread.
Properties | |
int | interval |
Timer repetition interval in ms. More... | |
A timer thread class.
QTimerThread inheritis QThread and uses internally QTimer to implement its functionality.
After calling start() a thread is spawned and the function timer_func() is called periodically with period equal to the interval property (in ms).
To use the class one has to subclass QTimerThread reimplement timer_func(). Note that timer_func() is executed from the sepatrate timer thread thus and the user is responsible for synchronization issues.
The accuracy of the timer depends on Qt's QTimer class. According to their docs QTimer uses the best OS timing routines in each case.
Definition at line 27 of file qtimerthread.h.
|
readwrite |
Timer repetition interval in ms.
Definition at line 32 of file qtimerthread.h.