11using namespace std::chrono;
26 m_stop = system_clock::now();
41 m_start = std::chrono::system_clock::now();
49 auto delta = std::get<0>(record);
50 auto ncalls = std::get<1>(record);
51 const auto &
units = std::get<2>(record);
54 double avTime = ncalls == 0 ? 0. : delta /
m_nCalls;
55 ss <<
"time("<<
units <<
"): " << delta <<
" nCalls: " << ncalls <<
" tav: "
std::string readAndReset()
std::string units() const
JetTrigTimer(bool nanoseconds=false)
std::chrono::system_clock::time_point m_start
double elapsed_to_update()
std::chrono::system_clock::time_point m_stop
std::tuple< double, int, std::string > read_bare() const