Browse Source
sys_clock_elapsed requires access to system clock register interface which is often slow. When new relative timeout is added sys_clock_elapsed() is called once to calculate delta ticks and then if that triggers setting new timeout sys_clock_elapsed() is called again. This call is redundant since everything happens under spin lock so it is better to reuse value returned by the first call. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>pull/88172/head
1 changed files with 16 additions and 7 deletions
Loading…
Reference in new issue