NiHu  2.0
NiHu::fmm::fmm_timer Class Reference

class to store fmm timing data More...

#include <fmm_timer.h>

Public Types

enum  {
  M2M = op_tags::tag2idx(op_tags::m2m()), L2L = op_tags::tag2idx(op_tags::l2l()), M2L = op_tags::tag2idx(op_tags::m2l()), P2M = op_tags::tag2idx(op_tags::p2m()),
  P2L = op_tags::tag2idx(op_tags::p2l()), L2P = op_tags::tag2idx(op_tags::l2p()), M2P = op_tags::tag2idx(op_tags::m2p()), P2P = op_tags::tag2idx(op_tags::p2p()),
  NUM_TIME_INDICES = op_tags::num_tags()
}
 

Public Member Functions

 fmm_timer (size_t nLevel)
 constructor More...
 
void reset (void)
 reset timer
 
timer_t::time_point_t tic (void)
 start timer
 
void toc (size_t level, int type)
 stop timer at a given level and operation type More...
 
std::ostream & print (std::ostream &os=std::cout) const
 inserter into output stream More...
 
const std::vector< std::array< long long, NUM_TIME_INDICES > > & get_times (void) const
 

Public Attributes

enum NiHu::fmm::fmm_timer:: { ... }  time_index_t
 

Detailed Description

class to store fmm timing data

Definition at line 22 of file fmm_timer.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
M2M 

index of M2M operation

L2L 

index of L2L operation

M2L 

index of M2L operation

P2M 

index of P2M operation

P2L 

index of P2L operation

L2P 

index of L2P operation

M2P 

index of M2P operation

P2P 

index of P2P operation

NUM_TIME_INDICES 

number of time indices

Definition at line 27 of file fmm_timer.h.

Constructor & Destructor Documentation

◆ fmm_timer()

NiHu::fmm::fmm_timer::fmm_timer ( size_t  nLevel)
inline

constructor

Parameters
[in]nLevelnumber of levels in the tree

Definition at line 56 of file fmm_timer.h.

Member Function Documentation

◆ print()

std::ostream & NiHu::fmm::fmm_timer::print ( std::ostream &  os = std::cout) const

inserter into output stream

Parameters
[in,out]osthe output stream

Definition at line 17 of file fmm_timer.cpp.

◆ toc()

void NiHu::fmm::fmm_timer::toc ( size_t  level,
int  type 
)
inline

stop timer at a given level and operation type

Parameters
[in]levelthe level in the tree
[in]typethe operation type that was timed

Definition at line 79 of file fmm_timer.h.


The documentation for this class was generated from the following files: