Flutter Engine
The Flutter Engine
|
#include <stopwatch.h>
Classes | |
class | RefreshRateUpdater |
The refresh rate interface for Stopwatch . More... | |
Public Member Functions | |
Stopwatch (const RefreshRateUpdater &updater) | |
~Stopwatch () | |
const fml::TimeDelta & | GetLap (size_t index) const |
size_t | GetLapsCount () const |
Return a reference to all the laps. More... | |
size_t | GetCurrentSample () const |
const fml::TimeDelta & | LastLap () const |
fml::TimeDelta | MaxDelta () const |
fml::TimeDelta | AverageDelta () const |
void | Start () |
void | Stop () |
void | SetLapTime (const fml::TimeDelta &delta) |
fml::Milliseconds | GetFrameBudget () const |
All places which want to get frame_budget should call this function. More... | |
Definition at line 17 of file stopwatch.h.
|
explicit |
The constructor with a updater parameter, it will update frame_budget everytime when GetFrameBudget()
is called.
Definition at line 11 of file stopwatch.cc.
|
default |
fml::TimeDelta flutter::Stopwatch::AverageDelta | ( | ) | const |
Definition at line 80 of file stopwatch.cc.
size_t flutter::Stopwatch::GetCurrentSample | ( | ) | const |
Definition at line 53 of file stopwatch.cc.
fml::Milliseconds flutter::Stopwatch::GetFrameBudget | ( | ) | const |
All places which want to get frame_budget should call this function.
Definition at line 88 of file stopwatch.cc.
const fml::TimeDelta & flutter::Stopwatch::GetLap | ( | size_t | index | ) | const |
Definition at line 45 of file stopwatch.cc.
size_t flutter::Stopwatch::GetLapsCount | ( | ) | const |
Return a reference to all the laps.
Definition at line 49 of file stopwatch.cc.
const fml::TimeDelta & flutter::Stopwatch::LastLap | ( | ) | const |
Definition at line 41 of file stopwatch.cc.
fml::TimeDelta flutter::Stopwatch::MaxDelta | ( | ) | const |
Definition at line 70 of file stopwatch.cc.
void flutter::Stopwatch::SetLapTime | ( | const fml::TimeDelta & | delta | ) |
Definition at line 36 of file stopwatch.cc.
void flutter::Stopwatch::Start | ( | ) |
Definition at line 27 of file stopwatch.cc.
void flutter::Stopwatch::Stop | ( | ) |
Definition at line 32 of file stopwatch.cc.