|
static uint32_t | getCount () |
| return number of ticks More...
|
|
static uint32_t | ticksToMs (uint32_t ticks) |
| Return time in ms, given time in ticks. More...
|
|
static uint32_t | msToTicks (uint32_t ms) |
| Return time in ticks, given time in ms Make sure time in ms is not too large! (limit is 512,000 ms with current frequency) More...
|
|
static uint32_t | difference (uint32_t ticksTo, uint32_t ticksFrom) |
| return difference between two tick counter values More...
|
|
static uint32_t | differenceMs (uint32_t ticksTo, uint32_t ticksFrom) |
| return difference between two tick counter values in ms. More...
|
|
static uint32_t | msPassedSince (uint32_t ticksFrom) |
| Returns the number of milliseconds passed since the given tick counter value. More...
|
|
static uint32_t | now () |
| return current clock in ms More...
|
|
Wrapper class for RTC functions.
if NRF51_USE_SOFTDEVICE==1 uses the RTC0 clock managed by the softdevice, otherwise uses the RTC1 clock used by the app timer With the current clock frequency and max counter val, the RTC overflows every 512s.