File indexing completed on 2025-01-18 09:54:08
0001
0002
0003
0004
0005
0006
0007
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 }
0026
0027 #endif