Re: [riot-devel] Question about expected timer semantics

2019-11-27 Thread Michel Rottleuthner
Hi all, thank you Kaspar for putting up this question. I think there are many more things that should be discussed about timers on this abstract conceptual level and there is a need to somehow document what we agreed on (maybe an RDM at some point?). > I think everyone agrees that if a relati

Re: [riot-devel] Question about expected timer semantics

2019-11-26 Thread Robin
> Am 26.11.2019 um 20:47 schrieb Kaspar Schleiser : > > Hi Should that be done, > or should the conversion be implemented in a way that the 1ms timer > behaves the same regardless of the lower timer having 1ms or 1us precision? Hi Kaspar, As a user/developer I would expect that sleep_ms(1) sl

[riot-devel] Question about expected timer semantics

2019-11-26 Thread Kaspar Schleiser
Hi everyone, I think everyone agrees that if a relative timer is set, it is expected to run *at least* the amount of time that is specified as interval to timer_set(). That means if now() is e.g., 0 ticks and the timer is set to wait 1 tick, the timer must trigger at 2 ticks, as even if now()==0,