55 virtual void tic()
const;
58 virtual float getFPSVal()
const;
61 virtual std::string getFPSString(
const std::string &fmt=
"%3.4f fps",
int bufferSize=30)
const;
64 virtual void showFPS(
const std::string &
text=
"")
const;
74 #define FPS_LOG_THIS_FUNCTION(N) static FPSEstimator __FPSEstimator__((N)); \ 75 __FPSEstimator__.showFps(__FUNCTION__); undocument this line if you encounter any issues!
Definition: Any.h:37
#define ICLUtils_API
this macros are important for creating dll's
Definition: CompatMacros.h:171
ICLQt_API void text(ImgQ &image, int x, int y, const string &text)
renders a text into an image (only available with Qt-Support)
std::deque< Time > m_qTimes
internal time queue
Definition: FPSEstimator.h:68
virtual ~FPSEstimator()
virtual destructor
Definition: FPSEstimator.h:49
int m_iN
time-queues size
Definition: FPSEstimator.h:71
ICLQt_API void tic(const std::string &label="")
starts a timer
Utility clas for online FPS estimation.
Definition: FPSEstimator.h:41