#include <FrameStats.h>
Public Member Functions | |
| FrameStats (void) | |
| FrameStats (unsigned max_past_times) | |
| ~FrameStats (void) | |
| FrameStats (const FrameStats &rhs) | |
| FrameStats & | operator= (const FrameStats &rhs) |
| const float * | GetPastTimes () const |
| unsigned | GetPastTimesCount () const |
| float | GetCurrentTime () const |
| unsigned | GetCurrentNumber () const |
| void | Update (float current_time) |
| pl7::FrameStats::FrameStats | ( | void | ) |
Default constructor.
| pl7::FrameStats::FrameStats | ( | unsigned | max_past_times | ) | [explicit] |
Explicit constructor.
| pl7::FrameStats::~FrameStats | ( | void | ) |
Destructor.
| pl7::FrameStats::FrameStats | ( | const FrameStats & | rhs | ) |
Copy constructor.
| unsigned pl7::FrameStats::GetCurrentNumber | ( | ) | const [inline] |
Returns the current frame's number.
| float pl7::FrameStats::GetCurrentTime | ( | ) | const [inline] |
Returns the current frame time.
| const float* pl7::FrameStats::GetPastTimes | ( | ) | const [inline] |
Returns the array of past times for smoothing purposes.
| unsigned pl7::FrameStats::GetPastTimesCount | ( | ) | const [inline] |
Returns the current number of stored past times for smoothing purposes.
| FrameStats & pl7::FrameStats::operator= | ( | const FrameStats & | rhs | ) |
Copy assignment operator.
| void pl7::FrameStats::Update | ( | float | current_time | ) |
Updates the current frame time and the stored past times.
1.7.1