mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
Update test_stopwatch.cpp
This commit is contained in:
parent
8222ca4837
commit
c174c15138
@ -39,6 +39,6 @@ TEST_CASE("stopwatch2", "[stopwatch]")
|
||||
auto val = std::stod(test_sink->lines()[0]);
|
||||
auto diff_duration = duration_cast<std::chrono::duration<double>>(stop - start);
|
||||
|
||||
REQUIRE(val >= (diff_duration - milliseconds(3)).count());
|
||||
REQUIRE(val >= (diff_duration).count() - 0.001);
|
||||
REQUIRE(val <= (diff_duration + tolerance_duration).count());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user