fix compilation of test fails on Android x86 (#14442)

This commit is contained in:
Sun Xiaoxia authored and GitHub committed 2022-12-06 20:24:18 +04:00
1 parent eb19a7f7ad
commit f5e6816633
1 file changed
+1 -1
@@ -47,7 +47,7 @@ static void run_test(std::function<void()> preprocessing,
auto stop = Time::now();
std::chrono::duration<float> fs = stop - start;
time_interval d = std::chrono::duration_cast<time_interval>(fs);
max_time = std::max(max_time, d.count());
max_time = std::max(max_time, static_cast<int64_t>(d.count()));
avg_time += static_cast<double>(d.count());
postprocessing();
}