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

Function GetCurrentTimestamp

IntelPresentMon/CommonUtilities/Qpc.cpp:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace pmon::util
8{
9 int64_t GetCurrentTimestamp() noexcept
10 {
11 LARGE_INTEGER timestamp;
12 if (!QueryPerformanceCounter(&timestamp)) {
13 pmlog_error("qpc failed").hr().first(20);
14 }
15 return (int64_t)timestamp.QuadPart;
16 }
17 double GetTimestampFrequencyDouble() noexcept
18 {
19 return double(GetTimestampFrequencyUint64());

Callers 9

EventRecordCallbackFunction · 0.85
SpinWaitUntilTimestampFunction · 0.85
MarkMethod · 0.85
PeekMethod · 0.85
PollDynamicQueryMethod · 0.85
NowMethod · 0.85
TimekeeperMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected