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

#include <MRMesh/MRTimer.h>

Public Member Functions

 Timer (std::string name)
 Timer (const char *name)
 ~Timer ()
void restart (std::string name)
void start (std::string name)
void start (const char *name)
void finish ()
 Timer (const Timer &)=delete
Timeroperator= (const Timer &)=delete
 Timer (Timer &&)=delete
Timeroperator= (Timer &&)=delete
std::chrono::duration< double > secondsPassed () const

Constructor & Destructor Documentation

◆ Timer() [1/4]

MR::Timer::Timer ( std::string name)
inline

◆ Timer() [2/4]

MR::Timer::Timer ( const char * name)
inline

the name is converted in std::string only if the timing is enabled in this thread, which is not the case in parallel worker threads, where MR_TIMER then costs nothing

◆ ~Timer()

MR::Timer::~Timer ( )
inline

◆ Timer() [3/4]

MR::Timer::Timer ( const Timer & )
delete

◆ Timer() [4/4]

MR::Timer::Timer ( Timer && )
delete

Member Function Documentation

◆ finish()

void MR::Timer::finish ( )

◆ operator=() [1/2]

Timer & MR::Timer::operator= ( const Timer & )
delete

◆ operator=() [2/2]

Timer & MR::Timer::operator= ( Timer && )
delete

◆ restart()

void MR::Timer::restart ( std::string name)

◆ secondsPassed()

std::chrono::duration< double > MR::Timer::secondsPassed ( ) const
inline

◆ start() [1/2]

void MR::Timer::start ( const char * name)

◆ start() [2/2]

void MR::Timer::start ( std::string name)

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