named_timer.h Source File
|
CPP API
|
named_timer.h
Go to the documentation of this file.
80 TimerRegistrar::get_instance().add_timer({name(), scope(), *this, mio::omp::get_thread_id(), 0});
Thread local singleton timer, identified by its name. Best used via AutoTimer.
Definition: named_timer.h:38
static std::string name()
Get the timer's name as a runtime string.
Definition: named_timer.h:45
static std::string scope()
Get the timer's scope as a runtime string.
Definition: named_timer.h:51
NamedTimer(NamedTimer &)=delete
Do not allow construction other than through get_instance and the default constructor.
NamedTimer(NamedTimer &&)=delete
NamedTimer()
Create a NamedTimer and register it.
Definition: named_timer.h:78
static NamedTimer & get_instance()
Get a thread local instance of this timer.
Definition: named_timer.h:63
void add_timer(TimerRegistration &®istration)
Add a new timer to the TimerRegistrar.
Definition: timer_registrar.h:72
static TimerRegistrar & get_instance()
Access the TimerRegistrar.
Definition: timer_registrar.h:56
int get_thread_id()
Get an id for the current OpenMP thread. When OpenMP is disabled, this is always 0.
Definition: mioomp.cpp:27
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
StringLiteral(const char(&string)[Size]) -> StringLiteral< Size - 1 >
Generated by