auto_timer.h Source File
|
CPP API
|
auto_timer.h
Go to the documentation of this file.
68 // Deduction guide that allows omitting the template parameter when using the BasicTimer constructor.
Timer that automatically starts when it is created, and stops when it is destroyed.
Definition: auto_timer.h:38
AutoTimer(AutoTimer &)=delete
AutoTimer(AutoTimer &&)=delete
BasicTimer & m_timer
Reference to the timer so it can be stopped in AutoTimer's destructor.
Definition: auto_timer.h:65
AutoTimer()
Run the NamedTimer given by the template parameter(s) Name (and Scope).
Definition: auto_timer.h:41
AutoTimer(BasicTimer &timer)
Run the given BasicTimer. Does not take ownership, so mind the timer's lifetime!
Definition: auto_timer.h:48
void stop()
Stop the timer and update the elapsed time. After calling stop, the timer may be started again.
Definition: basic_timer.h:47
void start()
Start the timer. Must be followed by exactly one stop.
Definition: basic_timer.h:39
Thread local singleton timer, identified by its name. Best used via AutoTimer.
Definition: named_timer.h:38
AutoTimer(BasicTimer &timer) -> AutoTimer<"">
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
Wrapper for string literals, that allows passing them as template arguments. Should be used with cons...
Definition: string_literal.h:32
constexpr bool empty() const
Check whether the StringLiteral is empty.
Definition: string_literal.h:59
Generated by