From 4c07b6b58f58bc4bcf7b7749076b38a4de843590 Mon Sep 17 00:00:00 2001 From: mtklein Date: Tue, 17 Jun 2014 07:06:29 -0700 Subject: [PATCH] BenchSysTimer_mach drops all sub-ms precision. Fix that! BUG=skia: R=bungeman@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/336903005 --- bench/BenchSysTimer_mach.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/BenchSysTimer_mach.cpp b/bench/BenchSysTimer_mach.cpp index cf3f1c1f7d..1f0a6b9861 100644 --- a/bench/BenchSysTimer_mach.cpp +++ b/bench/BenchSysTimer_mach.cpp @@ -71,6 +71,6 @@ double BenchSysTimer::endWall() { } else { uint64_t elapsedNano = elapsed * sTimebaseInfo.numer / sTimebaseInfo.denom; - return elapsedNano / 1000000; + return elapsedNano / 1000000.0; } }