commit | 2aa1510f22832a57773bf67f2ce4e39cc0745f78 | [log] [tgz] |
---|---|---|
author | Andy Hung <hunga@google.com> | Mon Jun 13 19:49:43 2022 -0700 |
committer | Andy Hung <hunga@google.com> | Fri Sep 02 16:56:30 2022 -0700 |
tree | 37f8d4d738c176d23248b9d4fea58c328af62142 | |
parent | 61ab7b5ea01e0bdfd6d857ff4803e0a6289fcb0f [diff] |
TimeCheck: Use clock monotonic for elapsed time The timeout deadline uses clock monotonic. Update the elapsed time passed to the callbacks to use clock monotonic as well. Clock monotonic counts only the time the CPU is active (vs suspend) and is a better estimate for performance monitoring. Test: overnight stress test Test: atest libmediautils_test Test: atest timecheck_tests Bug: 227594853 Change-Id: Ie35de689245a04ba50f4d4f04a10e2e0ded2293b