commit | 196f1b8a0f3d64b02a37069c37b35f32d358939a | [log] [tgz] |
---|---|---|
author | Bernie Innocenti <codewiz@google.com> | Mon May 20 16:34:16 2019 +0900 |
committer | Bernie Innocenti <codewiz@google.com> | Wed May 29 15:10:48 2019 +0900 |
tree | 5b81c54dc25d45856a8f40b98708a7354a174e2f | |
parent | e48bf0b636f9e0e0330f69ea5798f5bec48ec67e [diff] |
Remove floating-point time functions from StopWatch Converting time units between floating-point milliseconds to integral micros and floating-point seconds is error prone and leads to subtle rounding bugs. Thus, consolidate all callers on microseconds and delete the older methods. Test: cd system/netd && atest . Change-Id: Ief6ad4dbd21f442bfd65e78d49548677f3172a53