12#include <core/common_defines.h>
CoarseTimer FURI_WARN_UNUSED coarse_timer_create(uint32_t timeout_ms)
Create a coarse timer with the designated timeout.
Definition timers.c:16
uint32_t coarse_timer_get_elapsed(const CoarseTimer timer)
Get the time elapsed since the timer creation, in milliseconds.
Definition timers.c:24
bool coarse_timer_is_expired(const CoarseTimer timer)
Check whether a coarse timer is past its timeout.
Definition timers.c:28
bool precise_timer_wait_for(const PreciseTimer timer, TimerConditionCallback condition_cb, void *context)
Block the caller until the timer is expired OR a condition is reached.
Definition timers.c:56
uint32_t precise_timer_get_elapsed(const PreciseTimer timer)
Get the time elapsed since the timer creation, in microseconds.
Definition timers.c:41
void precise_timer_wait(const PreciseTimer timer)
Block the current execution context until the timer is expired.
Definition timers.c:50
bool precise_timer_is_expired(const PreciseTimer timer)
Check whether a precise timer is past its timeout.
Definition timers.c:46
PreciseTimer FURI_WARN_UNUSED precise_timer_create(uint32_t timeout_us)
Create a precise timer with the designated timeout.
Definition timers.c:32
bool(* TimerConditionCallback)(void *context)
Condition test function type.
Definition timers.h:50
CoarseTimer structure definition.
Definition timers.h:64
PreciseTimer structure definition.
Definition timers.h:117