LeechCraft 0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::Util::Timer Class Referencefinal

#include "timer.h"

Public Types

enum class  Resolution {
  ns ,
  us ,
  ms
}
 

Public Member Functions

 Timer ()
 
 Timer (const Timer &)=delete
 
 Timer (Timer &&)=delete
 
Timeroperator= (const Timer &)=delete
 
Timeroperator= (Timer &&)=delete
 
void Stamp (const char *context, std::source_location loc=std::source_location::current())
 
void Stamp (QStringView context, std::source_location loc=std::source_location::current())
 
 Timer (std::string_view, Resolution=Resolution::ms)
 
 ~Timer ()
 

Detailed Description

Definition at line 17 of file timer.h.

Member Enumeration Documentation

◆ Resolution

enum class LC::Util::Timer::Resolution
strong
Enumerator
ns 
us 
ms 

Definition at line 23 of file timer.h.

Constructor & Destructor Documentation

◆ Timer() [1/4]

LC::Util::Timer::Timer ( )
explicit

Definition at line 14 of file timer.cpp.

Referenced by Timer(), Timer(), operator=(), and operator=().

+ Here is the caller graph for this function:

◆ Timer() [2/4]

LC::Util::Timer::Timer ( const Timer & )
delete

References Timer().

+ Here is the call graph for this function:

◆ Timer() [3/4]

LC::Util::Timer::Timer ( Timer && )
delete

References Timer().

+ Here is the call graph for this function:

◆ Timer() [4/4]

LC::Util::Timer::Timer ( std::string_view label,
Resolution resolution = Resolution::ms )
explicit

Definition at line 14 of file timer.cpp.

◆ ~Timer()

LC::Util::Timer::~Timer ( )

Definition at line 21 of file timer.cpp.

References ms, ns, and us.

Member Function Documentation

◆ operator=() [1/2]

Timer & LC::Util::Timer::operator= ( const Timer & )
delete

References Timer().

+ Here is the call graph for this function:

◆ operator=() [2/2]

Timer & LC::Util::Timer::operator= ( Timer && )
delete

References Timer(), and Stamp().

+ Here is the call graph for this function:

◆ Stamp() [1/2]

void LC::Util::Timer::Stamp ( const char * context,
std::source_location loc = std::source_location::current () )

Definition at line 19 of file timer.cpp.

Referenced by operator=().

+ Here is the caller graph for this function:

◆ Stamp() [2/2]

void LC::Util::Timer::Stamp ( QStringView context,
std::source_location loc = std::source_location::current () )

Definition at line 24 of file timer.cpp.


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