commit | cc1bf34ba613b05afaf53c5a68634513fcc024f6 | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <pcc@google.com> | Wed Feb 07 16:55:49 2024 -0800 |
committer | Peter Collingbourne <pcc@google.com> | Wed Feb 07 16:55:49 2024 -0800 |
tree | 7e9caaa27aa78a0b64ac977d338cf609b4d3c17e | |
parent | da6329bd6fa9dcb30c1544ab7ac15bec2ad1e196 [diff] |
fastboot: Use clock_gettime(CLOCK_MONOTONIC) in now() If the system time changes during the execution of fastboot we might see some strange output such as: Sending sparse 'super' 4/20 (254972 KB) OKAY [-516.263s] Fix it by changing now() to use clock_gettime(CLOCK_MONOTONIC). I confirmed that all callers of now() are using it for relative time and not time since the epoch. Change-Id: Ic3e9442c2ab21dfb076bfed88915085a183754b0