[riot-notifications] [RIOT-OS/RIOT] sys/ztimer: Potential footgun when mixing timestamps of ztimer clocks (#16698)

Marian Buschsieweke 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...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210803/807ffc13/attachment.htm>

More information about the notifications mailing list