6 #ifndef NIHU_FMM_TIMER_H_INCLUDED
7 #define NIHU_FMM_TIMER_H_INCLUDED
49 std::vector<std::array<long long, NUM_TIME_INDICES> > m_times;
50 timer_t::time_point_t m_t0;
64 for (
auto &it : m_times)
69 typename timer_t::time_point_t
tic(
void)
71 return m_t0 = timer_t::tic();
79 void toc(
size_t level,
int type)
81 m_times[level][type] += (
long long) (timer_t::toc(m_t0) * 1e6);
88 std::ostream &
print(std::ostream &os = std::cout)
const;
90 std::vector<std::array<long long, NUM_TIME_INDICES> >
const & get_times(
void)
const