MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / stopTimer

Method stopTimer

Engine/source/platform/platformTimer.cpp:146–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146S32 ScriptTimerMan::stopTimer( S32 id )
147{
148 TimerMap::Iterator itr = mTimers.find( id );
149 if ( itr == mTimers.end() )
150 return -1;
151
152 PlatformTimer *timer = itr->value;
153 S32 elapsed = timer->getElapsedMs();
154
155 mTimers.erase( itr );
156 delete timer;
157
158 return elapsed;
159}
160
161ScriptTimerMan gScriptTimerMan;
162

Callers 3

platformTimer.cppFile · 0.45
cancelBuildMethod · 0.45
buildNextTileMethod · 0.45

Calls 4

findMethod · 0.45
endMethod · 0.45
getElapsedMsMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected