diff options
| author | Tom Cherry <tomcherry@google.com> | 2017-07-06 14:20:11 -0700 |
|---|---|---|
| committer | Tom Cherry <tomcherry@google.com> | 2017-07-10 09:28:24 -0700 |
| commit | ede0d538501dfc78c741fb3b0645406636d1d1fd (patch) | |
| tree | 8b00e4bc64471d59a20d762345683721b0214e62 /init/init_parser.cpp | |
| parent | c31963b5c255d57e162f4666f80b438ac74413ac (diff) | |
| download | core-ede0d538501dfc78c741fb3b0645406636d1d1fd.tar.gz core-ede0d538501dfc78c741fb3b0645406636d1d1fd.tar.bz2 core-ede0d538501dfc78c741fb3b0645406636d1d1fd.zip | |
Move Timer from init to libbase
Test: boot bullhead
Test: new libbase unit tests
Change-Id: Ic398a1daa1fe92c10ea7bc1e6ac3f781cee9a5b5
Diffstat (limited to 'init/init_parser.cpp')
| -rw-r--r-- | init/init_parser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/init/init_parser.cpp b/init/init_parser.cpp index e76d58916..9f7089bcd 100644 --- a/init/init_parser.cpp +++ b/init/init_parser.cpp @@ -18,6 +18,7 @@ #include <dirent.h> +#include <android-base/chrono_utils.h> #include <android-base/logging.h> #include <android-base/stringprintf.h> #include <android-base/strings.h> @@ -111,7 +112,7 @@ void Parser::ParseData(const std::string& filename, const std::string& data) { bool Parser::ParseConfigFile(const std::string& path) { LOG(INFO) << "Parsing file " << path << "..."; - Timer t; + android::base::Timer t; std::string data; std::string err; if (!ReadFile(path, &data, &err)) { |
