MCPcopy Create free account
hub / github.com/ZDoom/Raze / I_FreezeTime

Function I_FreezeTime

source/common/utility/i_time.cpp:189–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void I_FreezeTime(bool frozen)
190{
191 if (frozen)
192 {
193 assert(FreezeTime == 0);
194 FreezeTime = GetClockTimeNS();
195 }
196 else
197 {
198 assert(FreezeTime != 0);
199 if (FirstFrameStartTime != 0) FirstFrameStartTime += GetClockTimeNS() - FreezeTime;
200 FreezeTime = 0;
201 I_SetFrameTime();
202 }
203}
204
205void I_ResetFrameTime()
206{

Callers 3

cheats.cppFile · 0.85
PerformWipeFunction · 0.85
DEFINE_ACTION_FUNCTIONFunction · 0.85

Calls 2

GetClockTimeNSFunction · 0.85
I_SetFrameTimeFunction · 0.85

Tested by

no test coverage detected