stopwatch.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <chrono> // std::chrono
4 
5 namespace pass
6 {
10 class stopwatch
11 {
12 public:
16  void start() noexcept;
17 
21  std::chrono::nanoseconds get_elapsed() const noexcept;
22 
23 private:
24  std::chrono::steady_clock::time_point start_time;
25 };
26 } // namespace pass
void start() noexcept
Definition: stopwatch.cpp:3
Definition: stopwatch.hpp:10
Definition: adaptive_parameter_search.hpp:5
std::chrono::nanoseconds get_elapsed() const noexcept
Definition: stopwatch.cpp:8
std::chrono::steady_clock::time_point start_time
Definition: stopwatch.hpp:24