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

Function TimeReset

TombEngine/Specific/clock.cpp:99–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99bool TimeReset()
100{
101 auto fq = LARGE_INTEGER{};
102 QueryPerformanceCounter(&fq);
103
104 LdSync = (double)fq.LowPart + ((double)fq.HighPart * (double)0xffffffff);
105 LdSync /= LdFreq;
106 return true;
107}
108
109bool TimeInit()
110{

Callers 1

TimeInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected