ztimer overhead measurement functionality More...
ztimer overhead measurement functionality
Files | |
file | overhead.h |
ztimer_overhead API | |
Functions | |
int32_t | ztimer_overhead (ztimer_clock_t *clock, uint32_t base) |
Measure ztimer overhead. More... | |
int32_t ztimer_overhead | ( | ztimer_clock_t * | clock, |
uint32_t | base | ||
) |
Measure ztimer overhead.
This function can be used to measure the overhead incurred by ztimer. It will configure a callback to trigger after base
ticks, then return the number of ticks that have passed, minus base
.
[in] | clock | ztimer clock to operate on |
[in] | base | base interval to use |