MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Com_TimeVal

Function Com_TimeVal

code/qcommon/common.cpp:1319–1331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1317*/
1318
1319int Com_TimeVal(int minMsec)
1320{
1321 int timeVal;
1322
1323 timeVal = Sys_Milliseconds() - com_frameTime;
1324
1325 if(timeVal >= minMsec)
1326 timeVal = 0;
1327 else
1328 timeVal = minMsec - timeVal;
1329
1330 return timeVal;
1331}
1332
1333/*
1334=================

Callers 1

Com_FrameFunction · 0.70

Calls 1

Sys_MillisecondsFunction · 0.50

Tested by

no test coverage detected