MeshLib C++ Docs
Loading...
Searching...
No Matches

#include <MRMesh/MRTimeRecord.h>

Inheritance diagram for MR::ThreadRootTimeRecord:

Public Member Functions

 ThreadRootTimeRecord (const char *tdName)
void printTree ()
 ~ThreadRootTimeRecord ()
Public Member Functions inherited from MR::TimeRecord
std::chrono::nanoseconds childTime () const
 returns summed time of immediate children
std::chrono::nanoseconds myTime () const
double mySeconds () const
Public Member Functions inherited from MR::SimpleTimeRecord
double seconds () const

Public Attributes

const char * threadName = nullptr
std::chrono::time_point< std::chrono::high_resolution_clock > started = std::chrono::high_resolution_clock::now()
bool printTreeInDtor = true
double minTimeSec = 0.1
std::shared_ptr< spdlog::logger > loggerHandle = Logger::instance().getSpdLogger()
 prolong logger life
Public Attributes inherited from MR::TimeRecord
TimeRecordparent = nullptr
std::map< std::string, TimeRecordchildren
Public Attributes inherited from MR::SimpleTimeRecord
int count = 0
std::chrono::nanoseconds time = {}

Constructor & Destructor Documentation

◆ ThreadRootTimeRecord()

MR::ThreadRootTimeRecord::ThreadRootTimeRecord ( const char * tdName)

◆ ~ThreadRootTimeRecord()

MR::ThreadRootTimeRecord::~ThreadRootTimeRecord ( )

Member Function Documentation

◆ printTree()

void MR::ThreadRootTimeRecord::printTree ( )

Member Data Documentation

◆ loggerHandle

std::shared_ptr<spdlog::logger> MR::ThreadRootTimeRecord::loggerHandle = Logger::instance().getSpdLogger()

prolong logger life

◆ minTimeSec

double MR::ThreadRootTimeRecord::minTimeSec = 0.1

◆ printTreeInDtor

bool MR::ThreadRootTimeRecord::printTreeInDtor = true

◆ started

std::chrono::time_point<std::chrono::high_resolution_clock> MR::ThreadRootTimeRecord::started = std::chrono::high_resolution_clock::now()

◆ threadName

const char* MR::ThreadRootTimeRecord::threadName = nullptr

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