mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 04:07: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:
		| @@ -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; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sven
					Sven