73 uint64_t mFramesPerElapsedTime = 0;
74 double mElapsedTime = 0;
75 double mTimeWindow = 1000;
77 std::chrono::steady_clock::time_point mFrameTime1;
78 std::chrono::steady_clock::time_point mFrameTime2;
80 double mFramesPerSecond = 0;
82 double mTotalTime = 0;
83 uint64_t mTotalFrames = 0;
FPSMeter(double timeWindow=1000)
void reset()
Reset all frame information.
void setTimeWindow(double timeWindow)
Time window setup.
double deltaTime() const
Time in milliseconds between last frames.
double totalTime() const
Total time.
uint64_t totalFrames() const
Total frames.
double framesPerSecond() const
Number of frames per second counted in the time window.
bool newFrame()
When you get a frame, call the function to count.
Namespace to encapsulate INDI client, drivers, and mediator classes.