|
Instrument Neutral Distributed Interface INDI 2.2.5
|
#include <fpsmeter.h>
Public Member Functions | |
| FPSMeter (double timeWindow=1000) | |
| void | reset () |
| Reset all frame information. | |
| bool | newFrame () |
| When you get a frame, call the function to count. | |
| void | setTimeWindow (double timeWindow) |
| Time window setup. | |
| double | framesPerSecond () const |
| Number of frames per second counted in the time window. | |
| double | deltaTime () const |
| Time in milliseconds between last frames. | |
| uint64_t | totalFrames () const |
| Total frames. | |
| double | totalTime () const |
| Total time. | |
Definition at line 27 of file fpsmeter.h.
| INDI::FPSMeter::FPSMeter | ( | double | timeWindow = 1000 | ) |
Definition at line 25 of file fpsmeter.cpp.
| double INDI::FPSMeter::deltaTime | ( | ) | const |
Time in milliseconds between last frames.
Definition at line 65 of file fpsmeter.cpp.
| double INDI::FPSMeter::framesPerSecond | ( | ) | const |
Number of frames per second counted in the time window.
Definition at line 60 of file fpsmeter.cpp.
| bool INDI::FPSMeter::newFrame | ( | ) |
When you get a frame, call the function to count.
Definition at line 31 of file fpsmeter.cpp.
| void INDI::FPSMeter::reset | ( | ) |
Reset all frame information.
Definition at line 80 of file fpsmeter.cpp.
| void INDI::FPSMeter::setTimeWindow | ( | double | timeWindow | ) |
Time window setup.
| timeWindow | Time window in milliseconds over which the frames are counted |
Definition at line 55 of file fpsmeter.cpp.
| uint64_t INDI::FPSMeter::totalFrames | ( | ) | const |
| double INDI::FPSMeter::totalTime | ( | ) | const |