ztimer overhead measurement functionality More...
ztimer overhead measurement functionality
Files | |
file | overhead.h |
ztimer_overhead API | |
Functions | |
int32_t | ztimer_overhead_set (ztimer_clock_t *clock, uint32_t base) |
Measure overhead for ztimer_set() | |
int32_t | ztimer_overhead_sleep (ztimer_clock_t *clock, uint32_t base) |
Measure overhead for ztimer_sleep() | |
int32_t ztimer_overhead_set | ( | ztimer_clock_t * | clock, |
uint32_t | base | ||
) |
Measure overhead for ztimer_set()
This function can be used to measure the overhead incurred by ztimer_set(). 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 |
int32_t ztimer_overhead_sleep | ( | ztimer_clock_t * | clock, |
uint32_t | base | ||
) |
Measure overhead for ztimer_sleep()
This function can be used to measure the overhead incurred by ztimer_sleep().
[in] | clock | ztimer clock to operate on |
[in] | base | base interval to use |