summaryrefslogtreecommitdiff
path: root/runtime/base/time_utils.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2016-12-14 10:11:49 -0800
committer Andreas Gampe <agampe@google.com> 2016-12-15 09:50:39 -0800
commit46ee31b67d7ee1bd085fbc240502053caa3cf8fa (patch)
tree83e870f293cd60d533207e389d7b094acd87b31f /runtime/base/time_utils.cc
parent9538f9e2a5d03f1b1bc07ebfbd93b61dcf8ad604 (diff)
ART: Move to libbase StringPrintf
Remove ART's StringPrintf implementation. Fix up clients. Add missing includes where necessary. Test: m test-art-host Change-Id: I564038d5868595ac3bb88d641af1000cea940e5a
Diffstat (limited to 'runtime/base/time_utils.cc')
-rw-r--r--runtime/base/time_utils.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/base/time_utils.cc b/runtime/base/time_utils.cc
index 57f198d7e5..3c09d5a36f 100644
--- a/runtime/base/time_utils.cc
+++ b/runtime/base/time_utils.cc
@@ -20,8 +20,9 @@
#include "time_utils.h"
+#include "android-base/stringprintf.h"
+
#include "base/logging.h"
-#include "base/stringprintf.h"
#if defined(__APPLE__)
#include <sys/time.h>
@@ -29,6 +30,8 @@
namespace art {
+using android::base::StringPrintf;
+
std::string PrettyDuration(uint64_t nano_duration, size_t max_fraction_digits) {
if (nano_duration == 0) {
return "0";