commit | aca40d340de99513f4319727835cdabdd6ace69c | [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 | 8d1b39496af896eacb1d90c3c9ccc890d05fcd66 | |
parent | 7d419b7f2fe3e631adf7cbe6bac9b9dc5908ed78 [diff] [blame] |
Move Timer from init to libbase Test: boot bullhead Test: new libbase unit tests Change-Id: Ic398a1daa1fe92c10ea7bc1e6ac3f781cee9a5b5
diff --git a/chrono_utils.cpp b/chrono_utils.cpp index 5eedf3b..b6bf701 100644 --- a/chrono_utils.cpp +++ b/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