diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-12-16 21:06:24 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-12-16 21:06:24 +0000 |
commit | 1c83f34b9836db9280d831d700c3d77378b28f45 (patch) | |
tree | 1530cf0f95976f47c51ebc1a34ea0a29457da3ba | |
parent | 1431a6b93d570f11d5e18a575dae6d8715de26d1 (diff) | |
parent | a3e6140e6a6a151186256fa24d7216b057f6e8d0 (diff) | |
download | extras-1c83f34b9836db9280d831d700c3d77378b28f45.tar.gz |
Snap for 8009618 from a3e6140e6a6a151186256fa24d7216b057f6e8d0 to android11-tests-release
Change-Id: I15c996eab482ec74125ae0da28835d384ae3e579
-rw-r--r-- | simpleperf/IOEventLoop_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/IOEventLoop_test.cpp b/simpleperf/IOEventLoop_test.cpp index 9363bbc0..3578912f 100644 --- a/simpleperf/IOEventLoop_test.cpp +++ b/simpleperf/IOEventLoop_test.cpp @@ -143,7 +143,7 @@ void TestPeriodicEvents(int period_in_us, int iterations, bool precise) { double time_used = std::chrono::duration_cast<std::chrono::duration<double>>( end_time - start_time).count(); double min_time_in_sec = period_in_us / 1e6 * iterations; - double max_time_in_sec = min_time_in_sec + (precise ? 0.1 : 1); + double max_time_in_sec = min_time_in_sec + (precise ? 0.3 : 1); ASSERT_GE(time_used, min_time_in_sec); ASSERT_LT(time_used, max_time_in_sec); } |