summaryrefslogtreecommitdiffstats
path: root/init/ueventd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'init/ueventd.cpp')
-rw-r--r--init/ueventd.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/init/ueventd.cpp b/init/ueventd.cpp
index a713beb0a..c0eae1e9a 100644
--- a/init/ueventd.cpp
+++ b/init/ueventd.cpp
@@ -27,6 +27,7 @@
#include <set>
#include <thread>
+#include <android-base/chrono_utils.h>
#include <android-base/logging.h>
#include <android-base/properties.h>
#include <selinux/android.h>
@@ -198,7 +199,7 @@ void ColdBoot::WaitForSubProcesses() {
}
void ColdBoot::Run() {
- Timer cold_boot_timer;
+ android::base::Timer cold_boot_timer;
RegenerateUevents();
@@ -209,7 +210,7 @@ void ColdBoot::Run() {
WaitForSubProcesses();
close(open(COLDBOOT_DONE, O_WRONLY | O_CREAT | O_CLOEXEC, 0000));
- LOG(INFO) << "Coldboot took " << cold_boot_timer;
+ LOG(INFO) << "Coldboot took " << cold_boot_timer.duration().count() / 1000.0f << " seconds";
}
DeviceHandler CreateDeviceHandler() {