MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / Milliseconds

Method Milliseconds

neo/framework/EventLoop.cpp:252–269  ·  view source on GitHub ↗

================ idEventLoop::Milliseconds Can be used for profiling, but will be journaled accurately ================ */

Source from the content-addressed store, hash-verified

250================
251*/
252int idEventLoop::Milliseconds( void ) {
253#if 1 // FIXME!
254 return Sys_Milliseconds() - initialTimeOffset;
255#else
256 sysEvent_t ev;
257
258 // get events and push them until we get a null event with the current time
259 do {
260
261 ev = Com_GetRealEvent();
262 if ( ev.evType != SE_NONE ) {
263 Com_PushEvent( &ev );
264 }
265 } while ( ev.evType != SE_NONE );
266
267 return ev.evTime;
268#endif
269}
270
271/*
272================

Callers 4

PacifierUpdateMethod · 0.45
Com_Freeze_fFunction · 0.45
KeyDownEventMethod · 0.45
ScrollMethod · 0.45

Calls 1

Sys_MillisecondsFunction · 0.85

Tested by

no test coverage detected