24#ifndef CHANGESTREAMS_APPLY_METRICS_TIME_BASED_METRIC_STUB_H
25#define CHANGESTREAMS_APPLY_METRICS_TIME_BASED_METRIC_STUB_H
33 void reset()
override;
Abstract class for time based metrics implementations.
Definition: time_based_metric_interface.h:32
Class that intends to be a dummy end point for time metrics.
Definition: time_based_metric_stub.h:30
int64_t get_time() const override
Returns the time waited across all executions of the start/stop methods.
Definition: time_based_metric_stub.cc:32
void increment_counter() override
Increments the waiting counter.
Definition: time_based_metric_stub.cc:34
int64_t get_count() const override
Returns the number of time we waited on give spot.
Definition: time_based_metric_stub.cc:36
void start_timer() override
Starts counting time we are waiting on something.
Definition: time_based_metric_stub.cc:28
void stop_timer() override
Stops the timer for the wait.
Definition: time_based_metric_stub.cc:30
void reset() override
Resets the counter and summed time to 0.
Definition: time_based_metric_stub.cc:26