MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / AssertWithinTolerance

Function AssertWithinTolerance

IntelPresentMon/UnitTests/Timing.cpp:20–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 using namespace pmon;
19
20 void AssertWithinTolerance(double test, double expected, double tolerance)
21 {
22 const auto diff = test - expected;
23 Assert::IsTrue(diff <= tolerance, std::format(L"{} - {} = {} | exceeds {}", test, expected, diff, tolerance).c_str());
24 }
25
26 TEST_CLASS(TestTiming)
27 {

Callers 2

TEST_CLASSFunction · 0.85
TEST_METHODFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected