Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::Time::ApplicationTimer Class Reference

#include <ApplicationTimer.h>

Public Member Functions

 ApplicationTimer () noexcept
 
void update ()
 
void reset () noexcept
 
void resetFPSCounter () noexcept
 
F32 getFps () const noexcept
 
F32 getFrameTime () const noexcept
 
void getFrameRateAndTime (F32 &fpsOut, F32 &frameTimeOut) const noexcept
 
 PROPERTY_R (F32, speedfactor, 1.0f)
 
 PROPERTY_R (U32, targetFrameRate, Config::TARGET_FRAME_RATE)
 
 PROPERTY_R (string, benchmarkReport, "")
 

Private Attributes

FrameRateHandler _frameRateHandler
 
U64 _lastBenchmarkTimeStamp = 0UL
 

Detailed Description

Definition at line 49 of file ApplicationTimer.h.

Constructor & Destructor Documentation

◆ ApplicationTimer()

Divide::Time::ApplicationTimer::ApplicationTimer ( )
noexcept

Definition at line 24 of file ApplicationTimer.cpp.

Member Function Documentation

◆ getFps()

F32 Divide::Time::ApplicationTimer::getFps ( ) const
inlinenoexcept

Definition at line 43 of file ApplicationTimer.inl.

◆ getFrameRateAndTime()

void Divide::Time::ApplicationTimer::getFrameRateAndTime ( F32 fpsOut,
F32 frameTimeOut 
) const
inlinenoexcept

Definition at line 53 of file ApplicationTimer.inl.

◆ getFrameTime()

F32 Divide::Time::ApplicationTimer::getFrameTime ( ) const
inlinenoexcept

Definition at line 48 of file ApplicationTimer.inl.

◆ PROPERTY_R() [1/3]

Divide::Time::ApplicationTimer::PROPERTY_R ( F32  ,
speedfactor  ,
1.  0f 
)

◆ PROPERTY_R() [2/3]

Divide::Time::ApplicationTimer::PROPERTY_R ( string  ,
benchmarkReport  ,
""   
)

◆ PROPERTY_R() [3/3]

Divide::Time::ApplicationTimer::PROPERTY_R ( U32  ,
targetFrameRate  ,
Config::TARGET_FRAME_RATE   
)

◆ reset()

void Divide::Time::ApplicationTimer::reset ( )
noexcept

Definition at line 29 of file ApplicationTimer.cpp.

◆ resetFPSCounter()

void Divide::Time::ApplicationTimer::resetFPSCounter ( )
inlinenoexcept

Definition at line 38 of file ApplicationTimer.inl.

◆ update()

void Divide::Time::ApplicationTimer::update ( )

Definition at line 37 of file ApplicationTimer.cpp.

Member Data Documentation

◆ _frameRateHandler

FrameRateHandler Divide::Time::ApplicationTimer::_frameRateHandler
private

Definition at line 69 of file ApplicationTimer.h.

◆ _lastBenchmarkTimeStamp

U64 Divide::Time::ApplicationTimer::_lastBenchmarkTimeStamp = 0UL
private

Definition at line 71 of file ApplicationTimer.h.


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