BeRTOS
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 EmulTimerinstance ()
 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.

Definition at line 56 of file timer_qt.c.


The documentation for this class was generated from the following file: