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

Function Com_RunAndTimeServerPacket

code/qcommon/common.cpp:807–825  ·  view source on GitHub ↗

================= Com_RunAndTimeServerPacket ================= */

Source from the content-addressed store, hash-verified

805=================
806*/
807void Com_RunAndTimeServerPacket( netadr_t *evFrom, msg_t *buf ) {
808 int t1, t2, msec;
809
810 t1 = 0;
811
812 if ( com_speeds->integer ) {
813 t1 = Sys_Milliseconds ();
814 }
815
816 SV_PacketEvent( *evFrom, buf );
817
818 if ( com_speeds->integer ) {
819 t2 = Sys_Milliseconds ();
820 msec = t2 - t1;
821 if ( com_speeds->integer == 3 ) {
822 Com_Printf( "SV_PacketEvent time: %i\n", msec );
823 }
824 }
825}
826
827/*
828=================

Callers 1

Com_EventLoopFunction · 0.70

Calls 3

Com_PrintfFunction · 0.70
Sys_MillisecondsFunction · 0.50
SV_PacketEventFunction · 0.50

Tested by

no test coverage detected