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

Function SpinWaitUntilTimestamp

IntelPresentMon/CommonUtilities/Qpc.cpp:35–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 return frequency == 0.0 ? 0.0 : 1.0 / frequency;
34 }
35 void SpinWaitUntilTimestamp(int64_t timestamp) noexcept
36 {
37 while (GetCurrentTimestamp() < timestamp) {
38 std::this_thread::yield();
39 }
40 }
41 double TimestampDeltaToSeconds(int64_t start, int64_t end, double period) noexcept
42 {
43 return double(end - start) * period;

Callers

nothing calls this directly

Calls 1

GetCurrentTimestampFunction · 0.85

Tested by

no test coverage detected