Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Jul 24, 2023
1 parent 4577993 commit d191811
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/HelperSources/Helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@ static std::vector<unsigned int> findMissingIndices(const std::vector<unsigned i
}
return indicesMissing;
}
static constexpr timeval durationToTimeval(nanoseconds dur) {
const auto secs = duration_cast<seconds>(dur);
static constexpr timeval durationToTimeval(std::chrono::nanoseconds dur) {
const auto secs = duration_cast<std::chrono::seconds>(dur);
dur -= secs;
const auto us = duration_cast<microseconds>(dur);
const auto us = duration_cast<std::chrono::microseconds>(dur);
return timeval{secs.count(), (long int)us.count()};
}
}
Expand Down

0 comments on commit d191811

Please sign in to comment.