[riot-devel] Timers (caution: long mail, abstract available)

Kaspar Schleiser kaspar at schleiser.de
Thu Sep 18 00:59:30 CEST 2014


Hi,

On 09/16/14 23:04, Oleg Hahm wrote:
> New Concept
> ----------
> After thinking about this problem a little bit, I came to the conclusion that
> there's only a need for one timer interface at the upper layers (i.e., user
> space). This interface should offer the possibility to specify if maximum
> precision is required or not and set timers of (almost) arbitrary duration,
> but with a resolution of at least one microsecond.
+1

Keep in mind that timers usually don't count anything like (u)seconds, 
but more something that fits in binary space (like 1s/2^16). Converting 
without using division/modulo sucks on platforms without hardware FPU.

Kaspar


More information about the devel mailing list