Representation of a free running timer module in ticks, which keeps repeatedly running.
More...
#include <Imt.Base.Dff.Runtime/FreeRunningTimer.h>
Representation of a free running timer module in ticks, which keeps repeatedly running.
The resolution of a tick is platform dependent, but is usually higher than the regular 1ms timer tick of RuntimeTimer. During link time this interface will be statically linked to a platform dependent implementation.
◆ getTicks()
static uint32_t imt::base::dff::runtime::FreeRunningTimer::getTicks |
( |
| ) |
|
|
static |
Get the current time.
- Returns
- the current time since start in ticks
◆ initFreeRunningTimer()
static void imt::base::dff::runtime::FreeRunningTimer::initFreeRunningTimer |
( |
| ) |
|
|
static |
Initialize the system time.
◆ microSecondsToTicks()
static uint32_t imt::base::dff::runtime::FreeRunningTimer::microSecondsToTicks |
( |
uint32_t const |
microSeconds | ) |
|
|
static |
Converts a time value in micro second resolution to a time value in tick resolution.
- Parameters
-
microSeconds | Value in micro second resolution. |
- Returns
- Number of ticks that represents the provided number of micro seconds.
◆ ticksToMicroSeconds()
static uint32_t imt::base::dff::runtime::FreeRunningTimer::ticksToMicroSeconds |
( |
uint32_t const |
ticks | ) |
|
|
static |
Converts a time value in tick resolution to a time value in micro seconds resolution.
- Parameters
-
ticks | Value in tick resolution. |
- Returns
- Number of micro seconds that represents the provided number of ticks.
The documentation for this class was generated from the following file: