Public Member Functions | Private Attributes | List of all members
gte::OnIdleTimer Class Reference

#include <GteOnIdleTimer.h>

Public Member Functions

std::string GetFPS () const
 
double GetFramesPerSecond () const
 
int64_t GetMillisecondsPerFrame () const
 
double GetSecondsPerFrame () const
 
void Measure ()
 
 OnIdleTimer (int64_t frequency=30)
 
void Reset ()
 
void UpdateFrameCount ()
 

Private Attributes

int64_t mAccumulatedFrameCount
 
int64_t mAccumulatedTime
 
int64_t mCallCount
 
int64_t mFrameCount
 
int64_t mFrequency
 
std::chrono::high_resolution_clock::time_point mTime0
 
std::chrono::high_resolution_clock::time_point mTime1
 

Detailed Description

Definition at line 18 of file GteOnIdleTimer.h.

Constructor & Destructor Documentation

OnIdleTimer::OnIdleTimer ( int64_t  frequency = 30)

Definition at line 16 of file GteOnIdleTimer.cpp.

Member Function Documentation

std::string OnIdleTimer::GetFPS ( ) const

Definition at line 91 of file GteOnIdleTimer.cpp.

double OnIdleTimer::GetFramesPerSecond ( ) const

Definition at line 48 of file GteOnIdleTimer.cpp.

int64_t OnIdleTimer::GetMillisecondsPerFrame ( ) const

Definition at line 76 of file GteOnIdleTimer.cpp.

double OnIdleTimer::GetSecondsPerFrame ( ) const

Definition at line 62 of file GteOnIdleTimer.cpp.

void OnIdleTimer::Measure ( )

Definition at line 33 of file GteOnIdleTimer.cpp.

void OnIdleTimer::Reset ( )

Definition at line 23 of file GteOnIdleTimer.cpp.

void gte::OnIdleTimer::UpdateFrameCount ( )
inline

Definition at line 51 of file GteOnIdleTimer.h.

Member Data Documentation

int64_t gte::OnIdleTimer::mAccumulatedFrameCount
private

Definition at line 46 of file GteOnIdleTimer.h.

int64_t gte::OnIdleTimer::mAccumulatedTime
private

Definition at line 46 of file GteOnIdleTimer.h.

int64_t gte::OnIdleTimer::mCallCount
private

Definition at line 45 of file GteOnIdleTimer.h.

int64_t gte::OnIdleTimer::mFrameCount
private

Definition at line 46 of file GteOnIdleTimer.h.

int64_t gte::OnIdleTimer::mFrequency
private

Definition at line 45 of file GteOnIdleTimer.h.

std::chrono::high_resolution_clock::time_point gte::OnIdleTimer::mTime0
private

Definition at line 47 of file GteOnIdleTimer.h.

std::chrono::high_resolution_clock::time_point gte::OnIdleTimer::mTime1
private

Definition at line 47 of file GteOnIdleTimer.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:06