Skip to content
Snippets Groups Projects
Commit c34d76b1 authored by Niels Möller's avatar Niels Möller
Browse files

(display): Use two decimal places.

Rev: src/nettle/examples/nettle-benchmark.c:1.17
parent 3b390e3c
No related branches found
No related tags found
No related merge requests found
...@@ -176,14 +176,14 @@ static void ...@@ -176,14 +176,14 @@ static void
display(const char *name, const char *mode, unsigned block_size, display(const char *name, const char *mode, unsigned block_size,
double time) double time)
{ {
printf("%18s %11s %7.1f", printf("%18s %11s %7.2f",
name, mode, name, mode,
BENCH_BLOCK / (time * 1048576.0)); BENCH_BLOCK / (time * 1048576.0));
if (frequency > 0.0) if (frequency > 0.0)
{ {
printf(" %11.1f", time * frequency / BENCH_BLOCK); printf(" %11.2f", time * frequency / BENCH_BLOCK);
if (block_size > 0) if (block_size > 0)
printf(" %12.1f", time * frequency * block_size / BENCH_BLOCK); printf(" %12.2f", time * frequency * block_size / BENCH_BLOCK);
} }
printf("\n"); printf("\n");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment