commit | ede0d538501dfc78c741fb3b0645406636d1d1fd | [log] [tgz] |
---|---|---|
author | Tom Cherry <tomcherry@google.com> | Thu Jul 06 14:20:11 2017 -0700 |
committer | Tom Cherry <tomcherry@google.com> | Mon Jul 10 09:28:24 2017 -0700 |
tree | 8b00e4bc64471d59a20d762345683721b0214e62 | |
parent | c31963b5c255d57e162f4666f80b438ac74413ac [diff] [blame] |
Move Timer from init to libbase Test: boot bullhead Test: new libbase unit tests Change-Id: Ic398a1daa1fe92c10ea7bc1e6ac3f781cee9a5b5
diff --git a/base/chrono_utils.cpp b/base/chrono_utils.cpp index 5eedf3b..b6bf701 100644 --- a/base/chrono_utils.cpp +++ b/base/chrono_utils.cpp
@@ -33,5 +33,10 @@ #endif // __ANDROID__ } +std::ostream& operator<<(std::ostream& os, const Timer& t) { + os << t.duration().count() << "ms"; + return os; +} + } // namespace base } // namespace android