11 void ScopeTimer::record_duration() {
12 auto dt = clock_t::now() -
m_Start;
StatisticsCollection * m_Accu
static bool is_enabled(const StatisticsCollection *accu, stat_id_t stat)
clock_t::time_point m_Start
This class manages a collection of named Statistics objects.
bool is_enabled(stat_id_t stat) const
Quickly checks whether collection of data is enabled for the given statistics.
void record(stat_id_t stat, T &&value)
Records an already computed value.