MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Com_Milliseconds

Function Com_Milliseconds

code/qcommon/common.cpp:901–914  ·  view source on GitHub ↗

================ Com_Milliseconds Can be used for profiling, but will be journaled accurately ================ */

Source from the content-addressed store, hash-verified

899================
900*/
901int Com_Milliseconds (void) {
902 sysEvent_t ev;
903
904 // get events and push them until we get a null event with the current time
905 do {
906
907 ev = Com_GetRealEvent();
908 if ( ev.evType != SE_NONE ) {
909 Com_PushEvent( &ev );
910 }
911 } while ( ev.evType != SE_NONE );
912
913 return ev.evTime;
914}
915
916//============================================================================
917

Callers 5

Com_Freeze_fFunction · 0.70
Com_InitFunction · 0.70
SND_TouchSFXFunction · 0.50
SND_FreeOldestSoundFunction · 0.50
SV_InitGameProgsFunction · 0.50

Calls 2

Com_GetRealEventFunction · 0.70
Com_PushEventFunction · 0.70

Tested by

no test coverage detected