MCPcopy Create free account
hub / github.com/ddnet/ddnet / GetPredictionTime

Method GetPredictionTime

src/engine/client/client.cpp:5099–5103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5097}
5098
5099int CClient::GetPredictionTime()
5100{
5101 int64_t Now = time_get();
5102 return (int)((m_PredictedTime.Get(Now) - m_aGameTime[g_Config.m_ClDummy].Get(Now)) * 1000 / (float)time_freq());
5103}
5104
5105int CClient::GetPredictionTick()
5106{

Callers 2

OnPredictMethod · 0.80
RenderTextInfoMethod · 0.80

Calls 3

time_getFunction · 0.85
time_freqFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected