Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::FixedRefreshRateStopwatch Class Reference

Used for fixed refresh rate cases. More...

#include <stopwatch.h>

Inheritance diagram for flutter::FixedRefreshRateStopwatch:
flutter::Stopwatch

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::TimeDeltaGetLap (size_t index) const
 
size_t GetLapsCount () const
 Return a reference to all the laps. More...
 
size_t GetCurrentSample () const
 
const fml::TimeDeltaLastLap () 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...
 

Detailed Description

Used for fixed refresh rate cases.

Definition at line 77 of file stopwatch.h.

Constructor & Destructor Documentation

◆ FixedRefreshRateStopwatch()

flutter::FixedRefreshRateStopwatch::FixedRefreshRateStopwatch ( fml::Milliseconds  fixed_frame_budget = fml::kDefaultFrameBudget)
explicit

Definition at line 19 of file stopwatch.cc.

21 : Stopwatch(fixed_delegate_), fixed_delegate_(frame_budget) {}
Stopwatch(const RefreshRateUpdater &updater)
Definition: stopwatch.cc:11

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