Skip to content

Commit

Permalink
Avoid useless FDuration cast in benchmark analysis (#2823)
Browse files Browse the repository at this point in the history
Co-authored-by: Sven Johannsen <s.johannsen@bretgeld-engineering.de>
  • Loading branch information
SvenJo and Sven Johannsen committed Feb 26, 2024
1 parent ed6ac8a commit fb51116
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/catch2/benchmark/detail/catch_analyse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ namespace Catch {
FDuration mean = FDuration(0);
int i = 0;
for (auto it = first; it < last; ++it, ++i) {
samples.push_back(FDuration(*it));
mean += FDuration(*it);
samples.push_back(*it);
mean += *it;
}
mean /= i;

Expand Down

0 comments on commit fb51116

Please sign in to comment.