BeRTOS
|
Singleton class for Qt-based hardware timer emulation. More...
Public Member Functions | |
void | init () |
Start timer emulator. | |
hptime_t | hpread () |
Return current time in high-precision format. | |
Static Public Member Functions | |
static EmulTimer & | instance () |
Return singleton instance. | |
Private Member Functions | |
EmulTimer () | |
Private ctor (singleton) | |
Private Attributes | |
QTime | system_time |
System timer (counts ms since application startup) | |
QTimer | timer |
The 1ms "hardware" tick counter. | |
bool | initialized |
We deliberately don't use RAII because the real hardware we're simulating needs to be initialized manually. |
Singleton class for Qt-based hardware timer emulation.
Definition at line 56 of file timer_qt.c.