ztimer overhead measurement functionality More...

Detailed Description

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...
 

Function Documentation

◆ ztimer_overhead()

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.

Parameters
[in]clockztimer clock to operate on
[in]basebase interval to use
Returns
(time from ztimer_set() until callback) - base