commit | c1ed5895438f2ae3767162f74388b09a16ab0800 | [log] [tgz] |
---|---|---|
author | Andrew Goodney <agoodney@yahoo.com> | Mon Dec 27 20:34:05 2021 -0800 |
committer | Nathan Hjelm <hjelmn@google.com> | Tue Jan 18 15:32:24 2022 -0700 |
tree | 70f824305d29dab77b0cee0dc027701f257815df | |
parent | f2b218b61867f27568ba74fa38e156e5f55ed825 [diff] |
The current code for calculating the timeout in darwin_reenumerate_device_timeout() doesn't calculate elapsed microseconds, it counts the number of times the loop runs. This results in very long timeouts. This PR uses clock_gettime(CLOCK_MONOTONIC, ...) to calculate the elapsed time Closes #1035 Signed-off-by: Nathan Hjelm <hjelmn@google.com>