commit | b07489614f44ffa11973e60a8b9ff957876cb1d8 | [log] [tgz] |
---|---|---|
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | Thu May 07 15:09:56 2020 +0300 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Fri May 08 17:31:45 2020 +0200 |
tree | 17c336ebcf8fdb69fac6b8e980185a9ac20ae9be | |
parent | 32270ae1b9498cc5fca30c6bc9cc7ea9bb71383e [diff] |
tests: posix: clock: Workaround to align clocks before querying Before calling clock_gettime() 2 times in row, issue k_usleep(1) to align code execution to timer interrupt to prevent (well, minimize) possibility of getting different ticks values. Suggested by @andyross. Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>