Commit 13bd7028 authored by Jan-Erik Rediger's avatar Jan-Erik Rediger Committed by antirez
Browse files

Fix nanosecond conversion

1 microsecond = 1000 nanoseconds
1e3 = 1000
10e3 = 10000
parent f6b7df3a
...@@ -2471,7 +2471,7 @@ static void intrinsicLatencyMode(void) { ...@@ -2471,7 +2471,7 @@ static void intrinsicLatencyMode(void) {
} }
double avg_us = (double)run_time/runs; double avg_us = (double)run_time/runs;
double avg_ns = avg_us * 10e3; double avg_ns = avg_us * 1e3;
if (force_cancel_loop || end > test_end) { if (force_cancel_loop || end > test_end) {
printf("\n%lld total runs " printf("\n%lld total runs "
"(avg latency: " "(avg latency: "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment