Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-17 08:53:26

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_CLOCK_HPP_INCLUDED
0011 #define CATCH_CLOCK_HPP_INCLUDED
0012 
0013 #include <chrono>
0014 
0015 namespace Catch {
0016     namespace Benchmark {
0017         using IDuration = std::chrono::nanoseconds;
0018         using FDuration = std::chrono::duration<double, std::nano>;
0019 
0020         template <typename Clock>
0021         using TimePoint = typename Clock::time_point;
0022 
0023         using default_clock = std::chrono::steady_clock;
0024     } // namespace Benchmark
0025 } // namespace Catch
0026 
0027 #endif // CATCH_CLOCK_HPP_INCLUDED