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

Function TEST_METHOD

IntelPresentMon/UnitTests/MetricsCore.cpp:180–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 };
179
180 TEST_METHOD(DefaultConstruction_InitializesTimestampsToZero)
181 {
182 SwapChainCoreState swapChain;
183
184 Assert::AreEqual(0ull, swapChain.lastSimStartTime);
185 Assert::AreEqual(0ull, swapChain.lastDisplayedSimStartTime);
186 Assert::AreEqual(0ull, swapChain.lastDisplayedScreenTime);
187 Assert::AreEqual(0ull, swapChain.firstAppSimStartTime);
188 }
189
190 TEST_METHOD(DefaultConstruction_InitializesOptionalPresentToEmpty)
191 {

Callers

nothing calls this directly

Calls 15

CalculateCPUStartFunction · 0.85
CalculateAnimationTimeFunction · 0.85
MakeFrameFunction · 0.85
ComputeMetricsForPresentFunction · 0.85
HasMetricValueFunction · 0.85
CalculateEmaFunction · 0.85
EnqueueMethod · 0.80
UpdateAfterPresentMethod · 0.80
DurationMilliSecondsMethod · 0.80

Tested by

no test coverage detected