summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'init/init.cpp')
-rw-r--r--init/init.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/init/init.cpp b/init/init.cpp
index d23e1a3c0..bf251ffbe 100644
--- a/init/init.cpp
+++ b/init/init.cpp
@@ -73,6 +73,7 @@ using namespace std::string_literals;
73 73
74using android::base::boot_clock; 74using android::base::boot_clock;
75using android::base::GetProperty; 75using android::base::GetProperty;
76using android::base::Timer;
76 77
77namespace android { 78namespace android {
78namespace init { 79namespace init {
@@ -232,7 +233,7 @@ static int wait_for_coldboot_done_action(const std::vector<std::string>& args) {
232 panic(); 233 panic();
233 } 234 }
234 235
235 property_set("ro.boottime.init.cold_boot_wait", std::to_string(t.duration_ms())); 236 property_set("ro.boottime.init.cold_boot_wait", std::to_string(t.duration().count()));
236 return 0; 237 return 0;
237} 238}
238 239
@@ -870,7 +871,7 @@ static void selinux_initialize(bool in_kernel_domain) {
870 } 871 }
871 872
872 // init's first stage can't set properties, so pass the time to the second stage. 873 // init's first stage can't set properties, so pass the time to the second stage.
873 setenv("INIT_SELINUX_TOOK", std::to_string(t.duration_ms()).c_str(), 1); 874 setenv("INIT_SELINUX_TOOK", std::to_string(t.duration().count()).c_str(), 1);
874 } else { 875 } else {
875 selinux_init_all_handles(); 876 selinux_init_all_handles();
876 } 877 }