Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ddnet/ddnet
/ UpdatePlaytime
Method
UpdatePlaytime
src/game/server/player.cpp:742–745 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
740
}
741
742
void CPlayer::UpdatePlaytime()
743
{
744
m_LastPlaytime = time_get();
745
}
746
747
void CPlayer::AfkTimer()
748
{
Callers
6
OnSayNetMessage
Method · 0.80
OnCallVoteNetMessage
Method · 0.80
OnVoteNetMessage
Method · 0.80
OnSetSpectatorModeNetMessage
Method · 0.80
OnChangeInfoNetMessage
Method · 0.80
OnEmoticonNetMessage
Method · 0.80
Calls
1
time_get
Function · 0.85
Tested by
no test coverage detected