igor::iTimer Class Reference

#include <iTimer.h>

Inherits igor::iModule< iTimer >.

Public Member Functions

const iaTimegetTime () const
 
const iaTimegetTimeDelta () const
 
iaTime getAverageTimeDelta () const
 
iaTime getPeakTimeDelta () const
 
float64 getFPS () const
 
float64 getAverageFPS () const
 
void stop ()
 
void start ()
 

Friends

class iTimerHandle
 
class iApplication
 
class iModule< iTimer >
 

Additional Inherited Members

- Static Public Member Functions inherited from igor::iModule< iTimer >
static IGOR_INLINE iTimergetInstance ()
 
static IGOR_INLINE bool isInstantiated ()
 
static void create ()
 
static void destroy ()
 
- Protected Member Functions inherited from igor::iModule< iTimer >
 iModule ()=default
 
virtual ~iModule ()=default
 

Detailed Description

Handles Application time and intervals.

Measures time of application cycles based on render frames. Can also just measure current time see getTime()

Member Function Documentation

◆ getAverageFPS()

float64 igor::iTimer::getAverageFPS ( ) const
Returns
average frame rate over TIME_DELTAS frames

◆ getAverageTimeDelta()

iaTime igor::iTimer::getAverageTimeDelta ( ) const
Returns
average delta time over TIME_DELTAS frames

◆ getFPS()

float64 igor::iTimer::getFPS ( ) const
Returns
frame rate based only on one frame's time delta

◆ getPeakTimeDelta()

iaTime igor::iTimer::getPeakTimeDelta ( ) const
Returns
peak delta time over the last TIME_DELTAS frames

◆ getTime()

const iaTime & igor::iTimer::getTime ( ) const
Returns
time at beginning of current frame

◆ getTimeDelta()

const iaTime & igor::iTimer::getTimeDelta ( ) const
Returns
delta time since last frame

◆ start()

void igor::iTimer::start ( )

continues time

◆ stop()

void igor::iTimer::stop ( )

stops time and everything that is triggered by it

Friends And Related Function Documentation

◆ iApplication

friend class iApplication
friend

◆ iModule< iTimer >

friend class iModule< iTimer >
friend

◆ iTimerHandle

friend class iTimerHandle
friend

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