summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Cherry2017-07-06 16:20:11 -0500
committerTom Cherry2017-07-10 11:28:24 -0500
commitede0d538501dfc78c741fb3b0645406636d1d1fd (patch)
tree8b00e4bc64471d59a20d762345683721b0214e62 /base/chrono_utils.cpp
parentc31963b5c255d57e162f4666f80b438ac74413ac (diff)
downloadplatform-system-core-ede0d538501dfc78c741fb3b0645406636d1d1fd.tar.gz
platform-system-core-ede0d538501dfc78c741fb3b0645406636d1d1fd.tar.xz
platform-system-core-ede0d538501dfc78c741fb3b0645406636d1d1fd.zip
Move Timer from init to libbase
Test: boot bullhead Test: new libbase unit tests Change-Id: Ic398a1daa1fe92c10ea7bc1e6ac3f781cee9a5b5
Diffstat (limited to 'base/chrono_utils.cpp')
-rw-r--r--base/chrono_utils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/chrono_utils.cpp b/base/chrono_utils.cpp
index 5eedf3bce..b6bf701ea 100644
--- a/base/chrono_utils.cpp
+++ b/base/chrono_utils.cpp
@@ -33,5 +33,10 @@ boot_clock::time_point boot_clock::now() {
33#endif // __ANDROID__ 33#endif // __ANDROID__
34} 34}
35 35
36std::ostream& operator<<(std::ostream& os, const Timer& t) {
37 os << t.duration().count() << "ms";
38 return os;
39}
40
36} // namespace base 41} // namespace base
37} // namespace android 42} // namespace android