MCPcopy Create free account
hub / github.com/DaedalusX64/daedalus / GetPreciseFrequency

Function GetPreciseFrequency

Source/SysW32/Utility/TimingW32.cpp:25–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace NTiming {
24
25bool GetPreciseFrequency( u64 * p_freq )
26{
27 LARGE_INTEGER freq;
28 if(::QueryPerformanceFrequency( &freq ))
29 {
30 *p_freq = freq.QuadPart;
31 return true;
32 }
33
34 *p_freq = 1;
35 return false;
36}
37
38bool GetPreciseTime( u64 * p_time )
39{

Callers 1

ToMillisecondsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected