Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:02:48

0001 
0002 //              Copyright Catch2 Authors
0003 // Distributed under the Boost Software License, Version 1.0.
0004 //   (See accompanying file LICENSE.txt or copy at
0005 //        https://www.boost.org/LICENSE_1_0.txt)
0006 
0007 // SPDX-License-Identifier: BSL-1.0
0008 // Adapted from donated nonius code.
0009 
0010 #ifndef CATCH_ESTIMATE_HPP_INCLUDED
0011 #define CATCH_ESTIMATE_HPP_INCLUDED
0012 
0013 namespace Catch {
0014     namespace Benchmark {
0015         template <typename Duration>
0016         struct Estimate {
0017             Duration point;
0018             Duration lower_bound;
0019             Duration upper_bound;
0020             double confidence_interval;
0021 
0022             template <typename Duration2>
0023             operator Estimate<Duration2>() const {
0024                 return { point, lower_bound, upper_bound, confidence_interval };
0025             }
0026         };
0027     } // namespace Benchmark
0028 } // namespace Catch
0029 
0030 #endif // CATCH_ESTIMATE_HPP_INCLUDED