Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Public Member Functions | List of all members
fps_clock Class Reference

Clock to count the frames per second. More...

#include <fps_clock.h>

Public Member Functions

 fps_clock ()
 
double get_fps () const noexcept
 Get the frames per seconds.
 
void tick () noexcept
 Indicate a frame has processed.
 

Detailed Description

Clock to count the frames per second.

Note
Inspired by https://gist.github.com/kenpower/7233967

Constructor & Destructor Documentation

◆ fps_clock()

fps_clock::fps_clock ( )

Member Function Documentation

◆ get_fps()

double fps_clock::get_fps ( ) const
inlinenoexcept

Get the frames per seconds.

◆ tick()

void fps_clock::tick ( )
noexcept

Indicate a frame has processed.


The documentation for this class was generated from the following files: