equal
deleted
inserted
replaced
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 |