summaryrefslogtreecommitdiffstats
path: root/init/util.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2017-07-06 14:20:11 -0700
committerTom Cherry <tomcherry@google.com>2017-07-10 09:28:24 -0700
commitede0d538501dfc78c741fb3b0645406636d1d1fd (patch)
tree8b00e4bc64471d59a20d762345683721b0214e62 /init/util.cpp
parentc31963b5c255d57e162f4666f80b438ac74413ac (diff)
downloadsystem_core-ede0d538501dfc78c741fb3b0645406636d1d1fd.tar.gz
system_core-ede0d538501dfc78c741fb3b0645406636d1d1fd.tar.bz2
system_core-ede0d538501dfc78c741fb3b0645406636d1d1fd.zip
Move Timer from init to libbase
Test: boot bullhead Test: new libbase unit tests Change-Id: Ic398a1daa1fe92c10ea7bc1e6ac3f781cee9a5b5
Diffstat (limited to 'init/util.cpp')
-rw-r--r--init/util.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/init/util.cpp b/init/util.cpp
index 479179e41..2792794c5 100644
--- a/init/util.cpp
+++ b/init/util.cpp
@@ -374,11 +374,6 @@ void panic() {
DoReboot(ANDROID_RB_RESTART2, "reboot", "bootloader", false);
}
-std::ostream& operator<<(std::ostream& os, const Timer& t) {
- os << t.duration_s() << " seconds";
- return os;
-}
-
// Reads the content of device tree file under kAndroidDtDir directory.
// Returns true if the read is success, false otherwise.
bool read_android_dt_file(const std::string& sub_path, std::string* dt_content) {