riot_wrappers

Module ztimer

Source
Available on riot_module_ztimer only.
Expand description

§ztimer high level timer

ZTimer clocks are usually obtained by calling constructors that depend on the presence of global clocks – Clock::sec, Clock::msec and Clock::usec.

The methods usable on the clocks typically take durations in the form of Ticks, which ensure that time calculations are done early but can’t be mixed up between clocks. The sleep and spin methods take numeric tick counts and durations, not only for historical reasons, but also because sleeping for a Duration works infallibly (even if the duration exceeds the maximum number of ticks a timer can sleep) by sleeping in repetitions.

Modules§

Structs§

Enums§

Constants§