#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 |
Definition at line 18 of file GteOnIdleTimer.h.
OnIdleTimer::OnIdleTimer | ( | int64_t | frequency = 30 | ) |
Definition at line 16 of file GteOnIdleTimer.cpp.
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.
|
inline |
Definition at line 51 of file GteOnIdleTimer.h.
|
private |
Definition at line 46 of file GteOnIdleTimer.h.
|
private |
Definition at line 46 of file GteOnIdleTimer.h.
|
private |
Definition at line 45 of file GteOnIdleTimer.h.
|
private |
Definition at line 46 of file GteOnIdleTimer.h.
|
private |
Definition at line 45 of file GteOnIdleTimer.h.
|
private |
Definition at line 47 of file GteOnIdleTimer.h.
|
private |
Definition at line 47 of file GteOnIdleTimer.h.