Kagome
Polkadot Runtime Engine in C++17
TicToc Class Reference

#include <profiler.hpp>

Collaboration diagram for TicToc:

Public Member Functions

 TicToc (const std::string &name, const kagome::log::Logger &log)
 
void toc (int line=-1)
 
 ~TicToc ()
 

Private Attributes

std::string name_
 
const kagome::log::Loggerlog_
 
std::chrono::time_point< std::chrono::high_resolution_clock > t_
 

Detailed Description

Definition at line 7 of file profiler.hpp.

Constructor & Destructor Documentation

TicToc::TicToc ( const std::string &  name,
const kagome::log::Logger log 
)
inline

Definition at line 13 of file profiler.hpp.

TicToc::~TicToc ( )
inline

Definition at line 31 of file profiler.hpp.

Member Function Documentation

void TicToc::toc ( int  line = -1)
inline

Definition at line 18 of file profiler.hpp.

Member Data Documentation

const kagome::log::Logger& TicToc::log_
private

Definition at line 9 of file profiler.hpp.

std::string TicToc::name_
private

Definition at line 8 of file profiler.hpp.

std::chrono::time_point<std::chrono::high_resolution_clock> TicToc::t_
private

Definition at line 10 of file profiler.hpp.


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