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

Function GetTimestampPeriodSeconds

IntelPresentMon/CommonUtilities/Qpc.cpp:30–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 return (uint64_t)freq.QuadPart;
29 }
30 double GetTimestampPeriodSeconds() noexcept
31 {
32 const auto frequency = GetTimestampFrequencyDouble();
33 return frequency == 0.0 ? 0.0 : 1.0 / frequency;
34 }
35 void SpinWaitUntilTimestamp(int64_t timestamp) noexcept
36 {
37 while (GetCurrentTimestamp() < timestamp) {

Callers 6

EventRecordCallbackFunction · 0.85
QpcTimerMethod · 0.85
RegisterDynamicQueryMethod · 0.85
TimekeeperMethod · 0.85

Calls 1

Tested by

no test coverage detected