DiSMEC++
|
#include <timer.h>
Public Member Functions | |
~ScopeTimer () | |
ScopeTimer (const ScopeTimer &)=delete | |
ScopeTimer | operator= (const ScopeTimer &)=delete |
ScopeTimer (ScopeTimer &&other) noexcept | |
Move constructor. Needs to disable recording for the moved-from timer. More... | |
Private Types | |
using | clock_t = std::chrono::high_resolution_clock |
Private Member Functions | |
ScopeTimer (StatisticsCollection *accu, stat_id_t id) | |
void | record_duration () |
Static Private Member Functions | |
static bool | is_enabled (const StatisticsCollection *accu, stat_id_t stat) |
Private Attributes | |
stat_id_t | m_Target |
bool | m_Enabled = false |
clock_t::time_point | m_Start |
StatisticsCollection * | m_Accu |
Friends | |
ScopeTimer | record_scope_time (StatisticsCollection &accumulator, stat_id_t id) |
|
private |
|
inlineprivate |
|
inline |
Definition at line 36 of file timer.h.
References m_Enabled, and record_duration().
|
delete |
|
inlinenoexcept |
Move constructor. Needs to disable recording for the moved-from timer.
Definition at line 47 of file timer.h.
References dismec::stats::StatisticsCollection::m_Enabled.
|
staticprivate |
Definition at line 16 of file timer.cpp.
References dismec::stats::StatisticsCollection::is_enabled().
|
delete |
|
private |
Definition at line 11 of file timer.cpp.
References m_Accu, m_Start, m_Target, and dismec::stats::StatisticsCollection::record().
Referenced by ~ScopeTimer().
|
friend |
|
private |
Definition at line 20 of file timer.h.
Referenced by record_duration().
|
private |
Definition at line 18 of file timer.h.
Referenced by ScopeTimer(), and ~ScopeTimer().
|
private |
Definition at line 19 of file timer.h.
Referenced by record_duration(), and ScopeTimer().
|
private |
Definition at line 17 of file timer.h.
Referenced by record_duration().