7 #ifndef JLM_UTIL_TIME_HPP
8 #define JLM_UTIL_TIME_HPP
58 Start_ = std::chrono::high_resolution_clock::now();
71 auto end = std::chrono::high_resolution_clock::now();
73 std::chrono::duration_cast<std::chrono::nanoseconds>(end -
Start_).count();
86 throw std::logic_error(
"Timer is running");
93 std::chrono::time_point<std::chrono::high_resolution_clock>
Start_;
size_t ElapsedTimeInNanoseconds_
std::chrono::time_point< std::chrono::high_resolution_clock > Start_
Timer(const Timer &other)=delete
Timer & operator=(const Timer &other)=delete
Timer(Timer &&other)=default
Timer & operator=(Timer &&other)=default
bool isRunning() const noexcept