tests/xtimer_usleep_until: Print statistics at the end#4827
Merged
A-Paul merged 1 commit intoRIOT-OS:masterfrom Feb 23, 2016
Merged
tests/xtimer_usleep_until: Print statistics at the end#4827A-Paul merged 1 commit intoRIOT-OS:masterfrom
A-Paul merged 1 commit intoRIOT-OS:masterfrom
Conversation
tests/xtimer_usleep_until/main.c
Outdated
| if (res[i] < -1000 || res[i] > 1000) { | ||
| puts("too large difference.\n"); | ||
| puts("Test Failed.\n"); | ||
| return 1; |
Member
There was a problem hiding this comment.
This will skip the output of the elaborate statistic. :-)
Member
|
@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
Member
Author
|
@A-Paul |
Member
|
@gebart thanks for applying changes. Did a quick test on *arduino-due' and 'native'. O.K. and ACK. |
Member
|
Merging. |
A-Paul
pushed a commit
that referenced
this pull request
Feb 23, 2016
tests/xtimer_usleep_until: Print statistics at the end
Member
Author
|
Thanks for a well-done review! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Will print some statistics after the test finishes: