Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:54:08

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 #ifndef CATCH_TIMER_HPP_INCLUDED
0009 #define CATCH_TIMER_HPP_INCLUDED
0010 
0011 #include <cstdint>
0012 
0013 namespace Catch {
0014 
0015     class Timer {
0016         uint64_t m_nanoseconds = 0;
0017     public:
0018         void start();
0019         auto getElapsedNanoseconds() const -> uint64_t;
0020         auto getElapsedMicroseconds() const -> uint64_t;
0021         auto getElapsedMilliseconds() const -> unsigned int;
0022         auto getElapsedSeconds() const -> double;
0023     };
0024 
0025 } // namespace Catch
0026 
0027 #endif // CATCH_TIMER_HPP_INCLUDED