mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
sys/ztimer: make ztimer_overhead() return signed value (int32_t)
This commit is contained in:
parent
741b9d3b2d
commit
b45f4236de
@ -41,7 +41,7 @@ extern "C" {
|
||||
* @param[in] base base interval to use
|
||||
* @return (time from ztimer_set() until callback) - base
|
||||
*/
|
||||
uint32_t ztimer_overhead(ztimer_clock_t *clock, uint32_t base);
|
||||
int32_t ztimer_overhead(ztimer_clock_t *clock, uint32_t base);
|
||||
|
||||
#endif /* ZTIMER_OVERHEAD_H */
|
||||
/** @} */
|
||||
|
@ -35,7 +35,7 @@ static void _callback(void *arg)
|
||||
*callback_arg->val = ztimer_now(callback_arg->clock);
|
||||
}
|
||||
|
||||
uint32_t ztimer_overhead(ztimer_clock_t *clock, uint32_t base)
|
||||
int32_t ztimer_overhead(ztimer_clock_t *clock, uint32_t base)
|
||||
{
|
||||
volatile uint32_t after = 0;
|
||||
uint32_t pre;
|
||||
|
Loading…
Reference in New Issue
Block a user