#ifndef ICL_FPS_ESTIMATOR_H #define ICL_FPS_ESTIMATOR_H #include #include #include namespace icl{ ///Utility clas for online FPS estimation \ingroup TIME class FPSEstimator{ public: ///Constructor FPSEstimator(int n=1){ reset(n); } void reset(int n){ m_iN = n; for(int i=0;i m_qTimes; int m_iN; }; #define FPS_LOG_THIS_FUNCTION(N) static FPSEstimator __FPSEstimator__((N)); \ __FPSEstimator__.showFps(__FUNCTION__); } #endif