25 lines
329 B
C++
25 lines
329 B
C++
#ifndef WVCDM_METRICS_TIMER_METRIC_H_
|
|
#define WVCDM_METRICS_TIMER_METRIC_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
namespace wvcdm {
|
|
namespace metrics {
|
|
|
|
class TimerMetric {
|
|
|
|
public:
|
|
void Start();
|
|
double AsMs() const;
|
|
double AsUs() const;
|
|
|
|
private:
|
|
double sec_;
|
|
double usec_;
|
|
|
|
};
|
|
|
|
} // namespace metrics
|
|
} // namespace wvcdm
|
|
#endif
|