From 8b80937424116e2cd284b0416695c7ac50bcf4af Mon Sep 17 00:00:00 2001 From: terminx Date: Thu, 8 Mar 2018 05:15:05 +0000 Subject: [PATCH] CSV format for CON timing output git-svn-id: https://svn.eduke32.com/eduke32@6753 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/osdcmds.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/duke3d/src/osdcmds.cpp b/source/duke3d/src/osdcmds.cpp index d7caaeb2e..4a7fb399b 100644 --- a/source/duke3d/src/osdcmds.cpp +++ b/source/duke3d/src/osdcmds.cpp @@ -1442,12 +1442,12 @@ static int32_t osdcmd_printtimes(osdfuncparm_t const * const UNUSED(parm)) if (!haveev) { haveev = 1; - OSD_Printf("\n -- event times: [event]={ total calls, total time [ms], mean time/call [us] }\n"); + OSD_Printf("\nevent times: event, total calls, total time [ms], mean time/call [us]\n"); } buf[n] = 0; - OSD_Printf(" [%-26s]={ %8d, %10.3f, %10.3f },\n", + OSD_Printf("%17s, %8d, %10.3f, %10.3f,\n", buf, g_eventCalls[i], g_eventTotalMs[i], 1000*g_eventTotalMs[i]/g_eventCalls[i]); } @@ -1458,7 +1458,7 @@ static int32_t osdcmd_printtimes(osdfuncparm_t const * const UNUSED(parm)) if (!haveac) { haveac = 1; - OSD_Printf("\n -- actor times: [tile]={ total calls, total time [ms], {min,mean,max} time/call [us] }\n"); + OSD_Printf("\nactor times: tile, total calls, total time [ms], {min,mean,max} time/call [us]\n"); } buf[0] = 0; @@ -1474,7 +1474,7 @@ static int32_t osdcmd_printtimes(osdfuncparm_t const * const UNUSED(parm)) if (!buf[0]) Bsprintf(buf, "%d", i); - OSD_Printf(" [%-26s]={ %8d, %9.3f, %9.3f, %9.3f, %9.3f },\n", + OSD_Printf("%17s, %8d, %9.3f, %9.3f, %9.3f, %9.3f,\n", buf, g_actorCalls[i], g_actorTotalMs[i], 1000*g_actorMinMs[i], 1000*g_actorTotalMs[i]/g_actorCalls[i],