blob: f7fd51d34754e9fb351d4a4cbad1759753b56484 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef _TIME_UTIL_H_
#define _TIME_UTIL_H_
#include <chrono>
using namespace std;
using namespace chrono;
namespace extractor {
typedef high_resolution_clock Clock;
// Computes the duration in seconds of the specified time interval.
double GetDuration(const Clock::time_point& start_time,
const Clock::time_point& stop_time);
} // namespace extractor
#endif
|