matrix-test: fix units in report

The matrix-test speed tests are calculated in ns but some printed the
units as us

Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
dev
Derek Foreman 10 years ago committed by Pekka Paalanen
parent 362656bfa3
commit 086b987be4
  1. 4
      tests/matrix-test.c

@ -288,7 +288,7 @@ test_loop_speed_matrixvector(void)
} }
t = read_timer(); t = read_timer();
printf("%lu iterations in %f seconds, avg. %.1f us/iter.\n", printf("%lu iterations in %f seconds, avg. %.1f ns/iter.\n",
count, t, 1e9 * t / count); count, t, 1e9 * t / count);
} }
@ -315,7 +315,7 @@ test_loop_speed_inversetransform(void)
} }
t = read_timer(); t = read_timer();
printf("%lu iterations in %f seconds, avg. %.1f us/iter.\n", printf("%lu iterations in %f seconds, avg. %.1f ns/iter.\n",
count, t, 1e9 * t / count); count, t, 1e9 * t / count);
} }

Loading…
Cancel
Save