3 #include <spdlog/common.h>
14 StopWatch(
const std::string& name,
const spdlog::level::level_enum log_level);
21 template <
typename T = std::chrono::seconds>
30 std::chrono::high_resolution_clock::time_point
m_start;
31 std::chrono::high_resolution_clock::time_point
m_stop;
39 auto duration = std::chrono::duration_cast<T>(
m_stop -
m_start);
40 return duration.count();
std::chrono::high_resolution_clock::time_point m_stop
std::chrono::high_resolution_clock::time_point m_start
StopWatch(const std::string &name)
spdlog::level::level_enum m_log_level