12 #ifndef PF_PERFORMANCE_TIMER_HPP
13 #define PF_PERFORMANCE_TIMER_HPP
26 m_start = QueryTime();
31 m_acc += QueryTime() - m_start;
34 inline int Get(int64 coef)
36 return (
int)(m_acc * coef / QueryFrequency());
39 inline int64 QueryTime()
44 inline int64 QueryFrequency()
46 return ((int64)2200 * 1000000);
56 if (m_pperf != NULL) m_pperf->Start();
66 if (m_pperf != NULL) {