17 using namespace std::chrono;
18 out <<
" took " << duration_cast<microseconds>(M.
duration()).count() / 1e3 <<
" ms";
26void Timer::dump(std::ostream &out)
const { out << *
this; out.flush(); }
M_LCOV_EXCL_START std::ostream & operator<<(std::ostream &out, const PlanTableBase< Actual > &PT)
duration duration() const
Returns the duration of a finished Measurement.
bool is_finished() const
Returns true iff this Measurement has completed.
bool is_unused() const
Returns true iff the Measurement is unused, i.e.
bool is_active() const
Returns true iff this Measurement is currently in process.
std::string name
the name of this Measurement