[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 11:44:56 CEST 2021

> Some notion of "now" also is required for e.g. stuff like [SenML](https://datatracker.ietf.org/doc/html/rfc8428#section-4.5.3).

Note that points in time are always given as a duration since some reference point (epoch). E.g. most humans tend to specify points in time as duration since the birth of guy whose mother was - according to Christian mythology - still a virgin.

The suggestions in 5 makes the reference time point an explicit API argument (rather than an implicit), which I believe would increase awareness that those reference points are actually independent. And if bugs still get in, the `assert()`s will ease debugging significantly.

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/92b7bc10/attachment.htm>

More information about the notifications mailing list