Used for fixed refresh rate cases. More...
#include <stopwatch.h>
Public Member Functions | |
| FixedRefreshRateStopwatch (fml::Milliseconds fixed_frame_budget=fml::kDefaultFrameBudget) | |
Public Member Functions inherited from flutter::Stopwatch | |
| Stopwatch (const RefreshRateUpdater &updater) | |
| ~Stopwatch () | |
| const fml::TimeDelta & | GetLap (size_t index) const |
| size_t | GetLapsCount () const |
| Return a reference to all the laps. | |
| 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. | |
Additional Inherited Members | |
Static Public Attributes inherited from flutter::Stopwatch | |
| static const size_t | kMaxSamples = 120 |
Used for fixed refresh rate cases.
Definition at line 80 of file stopwatch.h.
|
explicit |
Definition at line 17 of file stopwatch.cc.