BioDynaMo  v1.03.58-27764645
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
bdm::Timing Class Reference

#include <timing.h>

Collaboration diagram for bdm::Timing:
[legend]

Public Types

typedef std::chrono::high_resolution_clock Clock
 

Public Member Functions

 Timing (const std::string &description="")
 
 Timing (const std::string &description, TimingAggregator *aggregator)
 
 ~Timing ()
 

Static Public Member Functions

static int64_t Timestamp ()
 
template<typename TFunctor >
static void Time (const std::string &description, TFunctor &&f)
 

Private Attributes

int64_t start_
 
std::string text_
 
TimingAggregatoraggregator_ = nullptr
 

Detailed Description

Definition at line 29 of file timing.h.

Member Typedef Documentation

◆ Clock

typedef std::chrono::high_resolution_clock bdm::Timing::Clock

Definition at line 31 of file timing.h.

Constructor & Destructor Documentation

◆ Timing() [1/2]

bdm::Timing::Timing ( const std::string &  description = "")
inlineexplicit

Definition at line 54 of file timing.h.

◆ Timing() [2/2]

bdm::Timing::Timing ( const std::string &  description,
TimingAggregator aggregator 
)
inline

Definition at line 57 of file timing.h.

◆ ~Timing()

bdm::Timing::~Timing ( )
inline

Definition at line 60 of file timing.h.

Member Function Documentation

◆ Time()

template<typename TFunctor >
static void bdm::Timing::Time ( const std::string &  description,
TFunctor &&  f 
)
inlinestatic

Definition at line 43 of file timing.h.

◆ Timestamp()

static int64_t bdm::Timing::Timestamp ( )
inlinestatic

Definition at line 33 of file timing.h.

Member Data Documentation

◆ aggregator_

TimingAggregator* bdm::Timing::aggregator_ = nullptr
private

Definition at line 72 of file timing.h.

◆ start_

int64_t bdm::Timing::start_
private

Definition at line 70 of file timing.h.

◆ text_

std::string bdm::Timing::text_
private

Definition at line 71 of file timing.h.


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