10 std::chrono::time_point<std::chrono::high_resolution_clock>
t_;
14 : name_(name), log_(log) {
15 t_ = std::chrono::high_resolution_clock::now();
18 void toc(
int line = -1) {
20 t_ = std::chrono::high_resolution_clock::now();
26 "{} lasted for {} sec",
28 std::chrono::duration_cast<std::chrono::seconds>(t_ - prev).count());
std::string_view to_string(SlotType s)
std::shared_ptr< soralog::Logger > Logger
std::chrono::time_point< std::chrono::high_resolution_clock > t_
TicToc(const std::string &name, const kagome::log::Logger &log)
const kagome::log::Logger & log_