1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/ztimer: ztimer_now() add warning regarding comparing now() values

This commit is contained in:
Kaspar Schleiser 2021-12-15 12:34:37 +01:00
parent dad01c17f6
commit 32afae0b5f

View File

@ -465,6 +465,9 @@ ztimer_now_t _ztimer_now_extend(ztimer_clock_t *clock);
/**
* @brief Get the current time from a clock
*
* @warning don't compare ztimer_now() values from different clocks. The
* clocks are almost certainly not synchronized.
*
* @param[in] clock ztimer clock to operate on
*
* @return Current count on @p clock