diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-06-23 14:40:44 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-06-23 14:42:15 -0700 |
commit | ca1bc46f1540cdef2743bc2cae0eac89d0e61c69 (patch) | |
tree | 201006fb6f978b3540eb4ea47975023a8c587d64 /test/perf | |
parent | 44dd65ce1e41423962da2c7cc2b2e3eb943cb12b (diff) |
Internal change.
PiperOrigin-RevId: 317941748
Diffstat (limited to 'test/perf')
-rw-r--r-- | test/perf/linux/futex_benchmark.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/perf/linux/futex_benchmark.cc b/test/perf/linux/futex_benchmark.cc index 241f39896..e686041c9 100644 --- a/test/perf/linux/futex_benchmark.cc +++ b/test/perf/linux/futex_benchmark.cc @@ -84,9 +84,9 @@ BENCHMARK(BM_FutexWaitNop)->MinTime(5); // changes, such that it always times out. Timeout overhead can be estimated by // timer overruns for short timeouts. void BM_FutexWaitMonotonicTimeout(benchmark::State& state) { - const int timeout_ns = state.range(0); + const absl::Duration timeout = absl::Nanoseconds(state.range(0)); std::atomic<int32_t> v(0); - auto ts = absl::ToTimespec(absl::Nanoseconds(timeout_ns)); + auto ts = absl::ToTimespec(timeout); for (auto _ : state) { TEST_PCHECK(FutexWaitMonotonicTimeout(&v, 0, &ts) == -1 && |