summaryrefslogtreecommitdiff
path: root/extractor/time_util.h
blob: 45f791990e4409da9886f3b8d41c9f14e72e6a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _TIME_UTIL_H_
#define _TIME_UTIL_H_

#include <chrono>

using namespace std;
using namespace chrono;

namespace extractor {

typedef high_resolution_clock Clock;

double GetDuration(const Clock::time_point& start_time,
                   const Clock::time_point& stop_time);

} // namespace extractor

#endif