76 if (time_points_.size() < 2) {
77 throw std::runtime_error(
"Too few number of time points.");
79 std::vector<Duration> durations;
80 durations.reserve(time_points_.size() - 1);
81 for (std::size_t i = 0; i < time_points_.size() - 1; ++i) {
82 durations.push_back(time_points_[i + 1] - time_points_[i]);