[riot-notifications] [RIOT-OS/RIOT] sys/ztimer: Potential footgun when mixing timestamps of ztimer clocks (#16698)
notifications at github.com
Tue Aug 3 15:10:17 CEST 2021
I think that the API as proposed in 5. wouldn't solve the power management problem (which IMO is more important than the footgun issue), since the API proposed is not concerned about starting / stopping the underlying clock.
But the other way round: If we are replacing the `ztimer_now()` API with a stopwatch API to assist power management, it should be relatively straight forward to add optional `assert()`s to counter confusing clocks for measurements of durations.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications