yapf/yapf.hpp
changeset 4434 4175805666a5
parent 4261 2ec8f5a9747b
child 4563 f25cb91c5f14
equal deleted inserted replaced
4433:2ee8e92ef389 4434:4175805666a5
    75 
    75 
    76 struct CPerfStartReal
    76 struct CPerfStartReal
    77 {
    77 {
    78 	CPerformanceTimer* m_pperf;
    78 	CPerformanceTimer* m_pperf;
    79 
    79 
    80 	FORCEINLINE CPerfStartReal(CPerformanceTimer& perf)	: m_pperf(&perf) {if (m_pperf != NULL) m_pperf->Start();}
    80 	FORCEINLINE CPerfStartReal(CPerformanceTimer& perf) : m_pperf(&perf) {if (m_pperf != NULL) m_pperf->Start();}
    81 	FORCEINLINE ~CPerfStartReal() {Stop();}
    81 	FORCEINLINE ~CPerfStartReal() {Stop();}
    82 	FORCEINLINE void Stop() {if (m_pperf != NULL) {m_pperf->Stop(); m_pperf = NULL;}}
    82 	FORCEINLINE void Stop() {if (m_pperf != NULL) {m_pperf->Stop(); m_pperf = NULL;}}
    83 };
    83 };
    84 
    84 
    85 struct CPerfStartFake
    85 struct CPerfStartFake