Calculate "frame-per-second" of something.
More...
Calculate "frame-per-second" of something.
while (true)
{
std::cout << std::round(
fps.fps()) << std::endl;
}
float fps()
Retrieve the current FPS value.
Definition: tools.h:106
FramesPerSecond() noexcept
Definition: tools.h:67
◆ FramesPerSecond()
◆ end_frame()
Call at the end of every frame.
◆ fps()
Retrieve the current FPS value.
◆ ready()
EGT_NODISCARD bool ready |
( |
| ) |
const |
|
inline |
Is any calculation ready?
◆ start()
◆ m_fps
◆ m_frames
Number of frames recorded since start time.
◆ m_ready
Is m_fps valid and ready?
◆ m_start
std::chrono::time_point<std::chrono::steady_clock> m_start {} |
|
protected |