20 #ifndef OPM_DEBUGTIMEREPORT_HEADER_INCLUDED
21 #define OPM_DEBUGTIMEREPORT_HEADER_INCLUDED
23 #include <opm/common/OpmLog/OpmLog.hpp>
24 #include <opm/core/utility/StopWatch.hpp>
34 : report_name_(report_name)
42 std::ostringstream msg;
43 msg << report_name_ <<
" took: " << clock_.secsSinceStart() <<
" seconds.";
44 OpmLog::debug(msg.str());
48 std::string report_name_;
49 time::StopWatch clock_;
54 #endif // OPM_DEBUGTIMEREPORT_HEADER_INCLUDED
Definition: DebugTimeReport.hpp:30