MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / endHighResolutionTimer

Function endHighResolutionTimer

Engine/source/platform/profiler.cpp:75–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75F64 endHighResolutionTimer(U64 time)
76{
77 if (!sQueryPerformanceInit)
78 {
79 sQueryPerformanceInit = true;
80 QueryPerformanceFrequency((LARGE_INTEGER*)&sQueryPerformanceFrequency);
81 }
82
83 U64 current;
84 QueryPerformanceCounter((LARGE_INTEGER*)&current);
85
86 return ((1000.0 * static_cast<F64>(current-time)) / static_cast<F64>(sQueryPerformanceFrequency));
87}
88
89#elif defined(TORQUE_OS_MAC)
90

Callers 2

hashPopMethod · 0.85
dumpMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected