Index: tools/bench_playback.cpp |
diff --git a/tools/bench_playback.cpp b/tools/bench_playback.cpp |
index 534ad9682214cb38f91a76a01a6f785d1dfc9be7..a5dfe50973a211abf29e39640be93e245bc9cb3f 100644 |
--- a/tools/bench_playback.cpp |
+++ b/tools/bench_playback.cpp |
@@ -40,7 +40,7 @@ |
src.width() * sizeof(SkPMColor))); |
canvas->clipRect(SkRect::MakeWH(SkIntToScalar(FLAGS_tile), SkIntToScalar(FLAGS_tile))); |
- const SkNSec start = SkTime::GetNSecs(); |
+ const SkMSec start = SkTime::GetMSecs(); |
for (int i = 0; i < FLAGS_loops; i++) { |
if (FLAGS_skr) { |
SkRecordDraw(record, canvas.get()); |
@@ -49,9 +49,9 @@ |
} |
} |
- const SkNSec elapsed = SkTime::GetNSecs() - start; |
- const double nsPerLoop = elapsed / (double)FLAGS_loops; |
- printf("%u\t%s\n", SkToUInt(nsPerLoop), name); |
+ const SkMSec elapsed = SkTime::GetMSecs() - start; |
+ const double msPerLoop = elapsed / (double)FLAGS_loops; |
+ printf("%6.2f\t%s\n", msPerLoop, name); |
} |
int tool_main(int argc, char** argv); |