aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-06-17 07:06:29 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-06-17 07:06:29 -0700
commit4c07b6b58f58bc4bcf7b7749076b38a4de843590 (patch)
treedef834b1c2518dc152b4db311a1968330f7a3409
parentda085e6ab3b17f16a69a35c2417bebabeb5e3494 (diff)
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
-rw-r--r--bench/BenchSysTimer_mach.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}
}