diff options
author | Dante Russo <drusso@codeaurora.org> | 2019-09-30 16:24:03 -0700 |
---|---|---|
committer | Dante Russo <drusso@codeaurora.org> | 2019-10-09 13:39:17 -0700 |
commit | f80980210e4b9ba5da41bc7f615943e164c68f39 (patch) | |
tree | 776e97f0498430a7ae64270b86aa358f16def1cf /android/1.1 | |
parent | 2379d8bc3046deed80453076830467683f2681b8 (diff) | |
download | gps-f80980210e4b9ba5da41bc7f615943e164c68f39.tar.gz |
Assure accurate elapsedRealTimeNanos calculations
If a context switch or interrupt happens between
getting current time and getting boot time, this
can throw off the calculation for the
elapsedRealTimeNanos timestamp. Avoid this by
retrying if there is a large enough delta
between getting current time and getting boot
time.
Change-Id: I47d7a99b480423a50eaf951a904f21928587eda6
CRs-fixed: 2541719
Diffstat (limited to 'android/1.1')
0 files changed, 0 insertions, 0 deletions