aboutsummaryrefslogtreecommitdiff
path: root/src/benchmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/benchmark.c')
-rw-r--r--src/benchmark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/benchmark.c b/src/benchmark.c
index 185e738..a56af0d 100644
--- a/src/benchmark.c
+++ b/src/benchmark.c
@@ -27,7 +27,7 @@ int main(int argc, char *argv[]) {
gettimeofday(&t, NULL);
us += (t.tv_sec - t0.tv_sec) * 1000000 + t.tv_usec - t0.tv_usec;
}
- printf("average read time for %i iterations: %i [ms]\n", ITERATIONS, us / ITERATIONS / 1000);
+ printf("average read time for %i iterations: %.3f [ms]\n", ITERATIONS, 1.0 * us / ITERATIONS / 1000);
us = 0;
for (int i = 0; i < ITERATIONS; ++i) {
@@ -36,5 +36,5 @@ int main(int argc, char *argv[]) {
gettimeofday(&t, NULL);
us += (t.tv_sec - t0.tv_sec) * 1000000 + t.tv_usec - t0.tv_usec;
}
- printf("average quick read time for %i iterations: %i [ms]\n", ITERATIONS, us / ITERATIONS / 1000);
+ printf("average quick read time for %i iterations: %.3f [ms]\n", ITERATIONS, 1.0 * us / ITERATIONS / 1000);
}