15 #ifndef CORE_OPERATION_OP_TIMER_H_
16 #define CORE_OPERATION_OP_TIMER_H_
26 template <
typename TOp>
30 explicit OpTimer(std::string timer_msg,
const TOp& op)
33 template <
typename Container>
34 void operator()(Container* cells, uint16_t numa_node, uint16_t type_idx) {
37 if (param->statistics) {
Decorator for Operations to measure runtime.
void operator()(Container *cells, uint16_t numa_node, uint16_t type_idx)
OpTimer(std::string timer_msg)
OpTimer(std::string timer_msg, const TOp &op)
const TOp * operator->() const
TimingAggregator * GetOpTimes()
static Simulation * GetActive()
This function returns the currently active Simulation simulation.
Scheduler * GetScheduler()
const Param * GetParam() const
Returns the simulation parameters.