commit | 2980f57f2c3da88139342b394f685c2c505c96c5 | [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 | af15fbf9aa6bb991a6abe8b2b72acc1a9405eff9 [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