-
Notifications
You must be signed in to change notification settings - Fork 2.1k
tests/xtimer_usleep_until: Print statistics at the end #4827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests/xtimer_usleep_until: Print statistics at the end #4827
Conversation
if (res[i] < min_diff) { | ||
min_diff = res[i]; | ||
} | ||
|
||
if (res[i] < -1000 || res[i] > 1000) { | ||
puts("too large difference.\n"); | ||
puts("Test Failed.\n"); | ||
return 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will skip the output of the elaborate statistic. :-)
@gebart, good idea. I like statistics. :) To print the min/max values in any case you may replace line 57-67 with this:
|
c376f85
to
4b47c3e
Compare
@A-Paul |
@gebart thanks for applying changes. Did a quick test on *arduino-due' and 'native'. O.K. and ACK. |
Merging. |
tests/xtimer_usleep_until: Print statistics at the end
Thanks for a well-done review! |
Will print some statistics after the test finishes: