aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/timer/Timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/timer/Timer.cpp')
-rw-r--r--tools/timer/Timer.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/tools/timer/Timer.cpp b/tools/timer/Timer.cpp
index e430404b3d..a9f04afe75 100644
--- a/tools/timer/Timer.cpp
+++ b/tools/timer/Timer.cpp
@@ -51,14 +51,3 @@ void WallTimer::start() {
void WallTimer::end() {
fWall = fSysTimer.endWall();
}
-
-SkString HumanizeMs(double ms) {
- if (ms > 1e+3) return SkStringPrintf("%.3gs", ms/1e3);
- if (ms < 1e-3) return SkStringPrintf("%.3gns", ms*1e6);
-#ifdef SK_BUILD_FOR_WIN
- if (ms < 1) return SkStringPrintf("%.3gus", ms*1e3);
-#else
- if (ms < 1) return SkStringPrintf("%.3gµs", ms*1e3);
-#endif
- return SkStringPrintf("%.3gms", ms);
-}