summaryrefslogtreecommitdiff
path: root/extractor/time_util.cc
blob: e46a0c3da6af6193850e06ffeafd12504711fb02 (plain)
1
2
3
4
5
6
7
8
9
10
#include "time_util.h"

namespace extractor {

double GetDuration(const Clock::time_point& start_time,
                   const Clock::time_point& stop_time) {
  return duration_cast<milliseconds>(stop_time - start_time).count() / 1000.0;
}

} // namespace extractor