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