8 #include "lib/fmt/ostream.h" 9 #include "util/chrono.hpp" 23 chrono::wall_clock::time_point start_time;
27 report_timer_t( std::string title, std::FILE* out ) : title( std::move( title ) ), out( out ), started(
false )
33 start_time = chrono::wall_clock::now();
41 fmt::print( out,
"{} took {}seconds.\n", title, chrono::elapsed_fp_seconds( start_time ) );
Automatic Timer reporting the time between construction and desctruction of the object.
Definition: report_timer.hpp:18