ryujin 2.1.1 revision ee5cbcbf2346c1299c942d0e1f13b46449973c18
Loading...
Searching...
No Matches
Classes | Static Public Member Functions | List of all members
ryujin::ComputingTimer Class Reference

#include <source/computing_timer.h>

Classes

class  Scope
 

Static Public Member Functions

static dealii::Timer & timer (const std::string &section)
 
static const std::map< std::string, dealii::Timer > & timers ()
 
static void reinit ()
 

Detailed Description

An accumulator for the wall and CPU time spent in named sections of the host code, keyed by section name.

Note
This class is a singleton and not thread safe.

Definition at line 31 of file computing_timer.h.

Member Function Documentation

◆ timer()

static dealii::Timer & ryujin::ComputingTimer::timer ( const std::string &  section)
inlinestatic

Return a reference to the deal.II timer object for the given section, creating it if necessary.

Definition at line 83 of file computing_timer.h.

Referenced by ryujin::TimeLoop< Description, dim, Number >::run(), and ryujin::HyperbolicModule< Description, dim, Number >::step().

◆ timers()

static const std::map< std::string, dealii::Timer > & ryujin::ComputingTimer::timers ( )
inlinestatic

Return a const reference to the full map of named timers.

Definition at line 91 of file computing_timer.h.

◆ reinit()

static void ryujin::ComputingTimer::reinit ( )
inlinestatic

Reset the timer object back to zero

Definition at line 99 of file computing_timer.h.

Referenced by ryujin::TimeLoop< Description, dim, Number >::run().


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