17#ifndef ZTIMER_STOPWATCH_H
18#define ZTIMER_STOPWATCH_H
static void ztimer_stopwatch_start(ztimer_stopwatch_t *timer)
Start the stop watch timer.
static uint32_t ztimer_stopwatch_reset(ztimer_stopwatch_t *timer)
Reset the stop watch start time.
static void ztimer_stopwatch_init(ztimer_clock_t *clock, ztimer_stopwatch_t *timer)
Initialize a ztimer stop watch The stop watch is not running yet.
static uint32_t ztimer_stopwatch_measure(ztimer_stopwatch_t *timer)
Take a measurement from the stop watch timer.
static void ztimer_stopwatch_stop(ztimer_stopwatch_t *timer)
Stop the stop watch.
bool ztimer_release(ztimer_clock_t *clock)
Release a clock.
bool ztimer_acquire(ztimer_clock_t *clock)
Acquire a clock.
static ztimer_now_t ztimer_now(ztimer_clock_t *clock)
Get the current time from a clock.
uint32_t start_time
start of measurement
ztimer_clock_t * clock
the clock to use