MCPcopy Create free account
hub / github.com/beefytech/Beef / InitCPUFreq

Function InitCPUFreq

BeefySysLib/platform/win/Platform.cpp:917–926  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

915static void(*sOldSIGABRTHandler)(int signal) = nullptr;
916
917static void InitCPUFreq()
918{
919 if (gStartCPUTick == -1)
920 {
921 gStartCPUTick = __rdtsc();
922 LARGE_INTEGER largeVal = { 0 };
923 QueryPerformanceCounter(&largeVal);
924 gStartQPF = largeVal.QuadPart;
925 }
926}
927
928static void Crash_Error(const char* msg)
929{

Callers 2

BfpSystem_InitFunction · 0.85
BfpSystem_GetCPUTickFreqFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected