commit | 8252f75cb3f5d1f3949a2af7e7eaf8351c617f8a | [log] [tgz] |
---|---|---|
author | Luis Hector Chavez <lhchavez@google.com> | Wed Apr 11 15:35:44 2018 -0700 |
committer | Luis Hector Chavez <lhchavez@google.com> | Thu Apr 12 01:50:50 2018 +0000 |
tree | 580a6c2e514706d5d7afd7c86bf4e60b0f5e1d18 | |
parent | 0cc5bdc6bf94762f46aa717a80033260b48e0e9d [diff] |
init: Use android::base::boot_clock instead of /proc/uptime /proc/uptime internally uses whatever would be returned by clock_gettime(CLOCK_BOOTTIME), so use android::base::boot_clock instead which avoids parsing strings and rounding errors. Bug: 77273909 Test: CtsBootStatsTestCases Change-Id: Ic162eefcf226073949a18cca55db3c2324b98749