nomlib
Loading...
Searching...
No Matches
nom::FPS Class Reference

FPS timer. More...

#include <FPS.hpp>

Inheritance diagram for nom::FPS:
[legend]

Public Member Functions

void start (void)
void stop (void)
uint32 frames (void) const
std::string asString (void) const
uint32 fps () const
float fps_float () const
void update (void)
Public Member Functions inherited from nom::Timer
void start (void)
void stop (void)
void restart (void)
 Alias for start.
void pause (void)
void unpause (void)
uint32 ticks (void) const
bool started (void) const
bool paused (void) const
const std::string ticksAsString (void) const
real32 to_seconds () const

Private Attributes

uint32 total_frames
Timer fps_timer
Timer fps_update_timer

Additional Inherited Members

Static Public Member Functions inherited from nom::Timer
static uint32 to_milliseconds (real32 seconds)
 Convert milliseconds to seconds.
static real32 to_seconds (uint32 ticks)
 Convert a timer value to seconds.

Detailed Description

FPS timer.

Definition at line 40 of file FPS.hpp.

Member Data Documentation

◆ fps_timer

Timer nom::FPS::fps_timer
private

Definition at line 60 of file FPS.hpp.

◆ fps_update_timer

Timer nom::FPS::fps_update_timer
private

Definition at line 60 of file FPS.hpp.

◆ total_frames

uint32 nom::FPS::total_frames
private

Definition at line 59 of file FPS.hpp.


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