Avoid useless FDuration cast in benchmark analysis (#2823)

Co-authored-by: Sven Johannsen <s.johannsen@bretgeld-engineering.de>
This commit is contained in:
Sven 2024-02-26 23:25:58 +01:00 committed by GitHub
parent ed6ac8a629
commit fb51116d5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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;