Print flush times when the test fails
This commit is contained in:
parent
b18039a4bf
commit
7471a70c60
@ -106,6 +106,11 @@ int main(void)
|
|||||||
/* It should be able to write 1 MiB in less than 1 ms */
|
/* It should be able to write 1 MiB in less than 1 ms */
|
||||||
if (mean > 1.0) {
|
if (mean > 1.0) {
|
||||||
fprintf(stderr, "took too much time to flush: %f ms\n", mean);
|
fprintf(stderr, "took too much time to flush: %f ms\n", mean);
|
||||||
|
|
||||||
|
fprintf(stderr, "times (in ms):\n");
|
||||||
|
for(int i=0; i < NRUNS; i++)
|
||||||
|
fprintf(stderr, " %4d %f\n", i, times[i]);
|
||||||
|
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user