1#ifndef OSMIUM_UTIL_TIMER_HPP
2#define OSMIUM_UTIL_TIMER_HPP
38#ifdef OSMIUM_WITH_TIMER
46 using clock = std::chrono::high_resolution_clock;
47 std::chrono::time_point<clock> m_start;
48 std::chrono::time_point<clock> m_stop;
53 m_start(clock::now()) {
57 m_start = clock::now();
61 m_stop = clock::now();
65 return std::chrono::duration_cast<std::chrono::microseconds>(m_stop - m_start).count();
int64_t elapsed_microseconds() const noexcept
Definition: timer.hpp:88
void stop() noexcept
Definition: timer.hpp:85
void start() noexcept
Definition: timer.hpp:82
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53