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

View File

@ -63,8 +63,8 @@ namespace Catch {
FDuration mean = FDuration(0); FDuration mean = FDuration(0);
int i = 0; int i = 0;
for (auto it = first; it < last; ++it, ++i) { for (auto it = first; it < last; ++it, ++i) {
samples.push_back(FDuration(*it)); samples.push_back(*it);
mean += FDuration(*it); mean += *it;
} }
mean /= i; mean /= i;