yapf/yapf.hpp
changeset 4434 a08cb4b5c179
parent 4261 28670f743746
child 4563 241260bd5505
equal deleted inserted replaced
4433:98632ba2212a 4434:a08cb4b5c179
    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