Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Peter Bigot <peter.bigot@nordicsemi.no>
- Loading branch information