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

Function getEventTimeLeft

Engine/source/console/simManager.cpp:202–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202U32 getEventTimeLeft(U32 eventSequence)
203{
204 Mutex::lockMutex(gEventQueueMutex);
205
206 for(SimEvent *walk = gEventQueue; walk; walk = walk->nextEvent)
207 if(walk->sequenceCount == eventSequence)
208 {
209 SimTime t = walk->time - getCurrentTime();
210 Mutex::unlockMutex(gEventQueueMutex);
211 return t;
212 }
213
214 Mutex::unlockMutex(gEventQueueMutex);
215
216 return 0;
217}
218
219U32 getScheduleDuration(U32 eventSequence)
220{

Callers 1

sim.cppFile · 0.85

Calls 1

getCurrentTimeFunction · 0.70

Tested by

no test coverage detected