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