MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / TimeInit

Function TimeInit

TombEngine/Specific/clock.cpp:109–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109bool TimeInit()
110{
111 auto fq = LARGE_INTEGER{};
112 if (!QueryPerformanceFrequency(&fq))
113 return false;
114
115 LdFreq = (double)fq.LowPart + ((double)fq.HighPart * (double)0xffffffff);
116 LdFreq /= 60.0;
117 TimeReset();
118 return true;
119}
120
121bool TestGlobalTimeInterval(unsigned int intervalGameFrames, unsigned int offsetGameFrames)
122{

Callers 1

GameMainFunction · 0.85

Calls 1

TimeResetFunction · 0.85

Tested by

no test coverage detected