4 #include <spdlog/common.h>
15 , m_log_level(log_level)
31 m_start = std::chrono::high_resolution_clock::now();
40 m_stop = std::chrono::high_resolution_clock::now();
45 int64_t h = getElapsedTime<std::chrono::hours>();
46 int64_t m = getElapsedTime<std::chrono::minutes>() % 60;
47 int64_t s = getElapsedTime<std::chrono::seconds>() % 60;
48 int64_t ms = getElapsedTime<std::chrono::milliseconds>() % 1000;
52 "[runtime h:m:s.ms] {}: {:02d}:{:02d}:{:02d}.{:03d}",
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
spdlog::logger & logger()
Retrieves the current logger.