MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / update

Method update

src/engine/GameClock.cpp:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void GameClock::update(double deltaRealTimeSeconds)
35{
36 m_TotalSecondsRunning += deltaRealTimeSeconds;
37 m_LastFrameDeltaTime = deltaRealTimeSeconds;
38 m_totalTimeInDays += totalSpeedUp() * deltaRealTimeSeconds / SECONDS_IN_A_DAY;
39}
40
41void GameClock::getTimeOfDay(int& hours, int& minutes) const
42{

Callers 3

onFrameUpdateMethod · 0.45
runMethod · 0.45
onFrameUpdateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected