MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getTime

Method getTime

src/Engine/Timer.cpp:86–93  ·  view source on GitHub ↗

* Returns the time passed since the last interval. * @return Time in milliseconds. */

Source from the content-addressed store, hash-verified

84 * @return Time in milliseconds.
85 */
86Uint32 Timer::getTime() const
87{
88 if (_running)
89 {
90 return slowTick() - _start;
91 }
92 return 0;
93}
94
95/**
96 * Returns if the timer has been started.

Callers 10

prepareDebriefingMethod · 0.45
SoldierMemorialStateMethod · 0.45
MonthlyReportStateMethod · 0.45
timeDisplayMethod · 0.45
timeAdvanceMethod · 0.45
time5SecondsMethod · 0.45
time1DayMethod · 0.45
getSunDirectionMethod · 0.45
GraphsStateMethod · 0.45
updateMethod · 0.45

Calls 1

slowTickFunction · 0.85

Tested by

no test coverage detected