mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Avoid useless FDuration cast in benchmark analysis (#2823)
Co-authored-by: Sven Johannsen <s.johannsen@bretgeld-engineering.de>
This commit is contained in:
parent
ed6ac8a629
commit
fb51116d5b
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user