LeechCraft  0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
LC::Util::Timer Class Reference

#include "timer.h"

Public Types

enum  Resolution {
  Resolution::ns,
  Resolution::us,
  Resolution::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 18 of file timer.h.

Member Enumeration Documentation

◆ Resolution

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.

◆ Timer() [2/4]

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

◆ Timer() [3/4]

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

◆ 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

◆ operator=() [2/2]

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

◆ 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.

◆ 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: