Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
dart::TimerScope Class Reference

#include <timer.h>

Inheritance diagram for dart::TimerScope:
dart::StackResource

Public Member Functions

 TimerScope (ThreadState *thread, Timer *timer)
 
 ~TimerScope ()
 
- Public Member Functions inherited from dart::StackResource
 StackResource (ThreadState *thread)
 
virtual ~StackResource ()
 
ThreadStatethread () const
 

Additional Inherited Members

- Static Public Member Functions inherited from dart::StackResource
static void Unwind (ThreadState *thread)
 
static void UnwindAbove (ThreadState *thread, StackResource *new_top)
 

Detailed Description

Definition at line 182 of file timer.h.

Constructor & Destructor Documentation

◆ TimerScope()

dart::TimerScope::TimerScope ( ThreadState thread,
Timer timer 
)
inline

Definition at line 184 of file timer.h.

185 : StackResource(thread), timer_(timer) {
186 if (timer_ != nullptr) timer_->Start();
187 }
ThreadState * thread() const
Definition allocation.h:33
StackResource(ThreadState *thread)
Definition allocation.h:25
void Start()
Definition timer.h:111

◆ ~TimerScope()

dart::TimerScope::~TimerScope ( )
inline

Definition at line 188 of file timer.h.

188 {
189 if (timer_ != nullptr) timer_->Stop();
190 }
void Stop()
Definition timer.h:117

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