![]() |
deal.II version 9.8.0
|
#include <deal.II/base/timer.h>
Helper class to enter/exit sections in TimerOutput by constructing a simple scope-based object. The purpose of this class is explained in the documentation of TimerOutput.
Public Member Functions | |
| Scope (::TimerOutput &timer_, const std::string §ion_name) | |
| ~Scope () | |
| void | stop () |
Private Attributes | |
| ::TimerOutput & | timer |
| const std::string | section_name |
| bool | in |
|
inline |
| TimerOutput::Scope::~Scope | ( | ) |
Destructor calls Scope::stop().
|
inline |
In case you want to exit the scope before the destructor is executed, call this function. The function leaves the current subsection of the stored TimerOutput object.
|
private |
Reference to the TimerOutput object
|
private |
|
private |