commit | 01cb92e7561ebf9ddb1feea8ba5b9a04402278c0 | [log] [tgz] |
---|---|---|
author | Vadim Bendebury <vbendeb@chromium.org> | Wed Oct 21 11:31:37 2015 -0700 |
committer | chrome-bot <chrome-bot@chromium.org> | Wed Oct 21 21:41:25 2015 +0000 |
tree | 2a7101a6091c783363a2f227aabefb63438d0689 | |
parent | 3dfffca12cb483bee81b6f65b6aeed027204b8f1 [diff] |
fix wall time calculations The time measurements provided by the clock() function on Linux are grossly inaccurate, which results in unexpected simulator behavior. This patch provides an alternative to be used when compiled on Linux. BUG=chrome-os-partner:43025 TEST=fixes test(s) listed in https://goo.gl/OXiTRX, the rest of the tests still pass Change-Id: I0dd617fd1e2f76d2c81ebfe89fe770a8d695c84f Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/307881 Reviewed-by: Utkarsh Sanghi <usanghi@chromium.org>