24#ifndef CS_TIME_BASED_METRIC_H
25#define CS_TIME_BASED_METRIC_H
Abstract class for time based metrics implementations.
Definition: time_based_metric_interface.h:30
virtual void stop_timer()=0
Stops the timer for the wait.
virtual ~Time_based_metric_interface()=default
virtual int64_t get_sum_time_elapsed() const =0
Returns the total time waited across all executions of the start/stop methods, minus the absolute sta...
virtual int64_t get_count() const =0
Returns the number of times we waited on give spot.
virtual void reset()=0
Resets the counter and summed time to 0.
virtual void start_timer()=0
Starts counting time we are waiting on something.
virtual void increment_counter()=0
Increments the waiting counter.