38#include <wx/stopwatch.h>
44 wxLog * pLog = wxLog::SetActiveTarget(NULL);
47 wxLog::SetActiveTarget(pLog);
50 wxLog * pLog = wxLog::SetActiveTarget(NULL);
51 wxLogDebug(
wxT(
"%s %l"), pDiag->
pMessage, amount );
52 wxLog::SetActiveTarget(pLog);
53 pDiag->
total += amount;
57 pDiag->
least = amount;
59 else if( amount > pDiag->
most )
61 else if( amount < pDiag->least )
62 pDiag->
least = amount;
66 if( *pRememberMe == NULL ){
80 pDiag->
total += amount;
84 pDiag->
least = amount;
86 else if( amount > pDiag->
most )
88 else if( amount < pDiag->least )
89 pDiag->
least = amount;
90 wxLog * pLog = wxLog::SetActiveTarget(NULL);
91 wxLogDebug(
wxT(
"%s %f seconds"), pDiag->
pMessage, ((
float)amount)/1000.0f );
92 wxLog::SetActiveTarget(pLog);
void diagnostics_do_diag(t_diag_struct *pDiag)
void diagnostics_do_perfmon_start(t_diag_struct *pDiag, t_diag_struct **pRememberMe)
void diagnostics_do_perfmon_stop(t_diag_struct **ppDiag)
void diagnostics_do_diag_mem(t_diag_struct *pDiag, long amount)
static bool bStopWatchStarted
static wxStopWatch MasterWatch