1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 23:41:18 +01:00
RIOT/tests/xtimer_now64_continuity
Koen Zandberg 81cff65c57
tests/xtimer_now64: Start time measure after print
Printing can take a lot of time over a serial connection. On the atmega
board it takes more than 2 ms, skewing the first measurement over the
threshold value and causing a test failure. This moves the print
statement above the first measumerement to prevent the skew.
2018-05-16 16:49:03 +02:00
..
2018-05-04 10:52:26 +02:00

Description

This test measures the difference of two consecutive calls to xtimer_now64() 100k times. If the max or average difference is larger than 1000us the test fails, otherwise it succeeds.