Skip to content
Commit 8fbc83c6 authored by Peter Bigot's avatar Peter Bigot Committed by Carles Cufi
Browse files

tests: timer_api: avoid compounding errors in imprecise conversions



When the timer frequency is not a multiple of 1000 converting between
ticks and milliseconds introduces error.  Avoid propagating the error
by converting divided values rather than dividing converted values.

Also compensate for observed rate differences between the busywait
clock and the timeout clock.

Signed-off-by: default avatarPeter Bigot <peter.bigot@nordicsemi.no>
parent a44bc702
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment