From: mtklein Date: Tue, 17 Jun 2014 14:06:29 +0000 (-0700) Subject: BenchSysTimer_mach drops all sub-ms precision. Fix that! X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~7185 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c07b6b58f58bc4bcf7b7749076b38a4de843590;p=platform%2Fupstream%2FlibSkiaSharp.git 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 --- diff --git a/bench/BenchSysTimer_mach.cpp b/bench/BenchSysTimer_mach.cpp index cf3f1c1..1f0a6b9 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; } }