Public Member Functions |
Static Public Member Functions |
Private Member Functions |
Private Attributes
EmulTimer Class Reference
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. | |
Detailed Description
Singleton class for Qt-based hardware timer emulation.
The documentation for this class was generated from the following file:
![(please configure the [header_logo] section in trac.ini)](/chrome/site/bertos_logo.png)