VAE - Virtual Audio Engine 1
Small Data Driven Audio Engine
tklb::SectionClock Class Reference

#include <TTimer.hpp>

Collaboration diagram for tklb::SectionClock:

Public Member Functions

 SectionClock (const char *message="")
 
 ~SectionClock ()
 

Private Attributes

const char * mMessage
 
std::clock_t mStart
 

Detailed Description

Definition at line 67 of file TTimer.hpp.

Constructor & Destructor Documentation

◆ SectionClock()

tklb::SectionClock::SectionClock ( const char *  message = "")
inline

Definition at line 72 of file TTimer.hpp.

72 {
73 mMessage = message;
74 mStart = std::clock();
75 }
std::clock_t mStart
Definition: TTimer.hpp:69
const char * mMessage
Definition: TTimer.hpp:68

◆ ~SectionClock()

tklb::SectionClock::~SectionClock ( )
inline

Definition at line 77 of file TTimer.hpp.

77 {
78 std::clock_t now = std::clock();
79 TKLB_PRINT("%s\t%i\tCycles\n", mMessage, int(now - mStart))
80 }
#define TKLB_PRINT(...)
Definition: TPrint.h:4

Member Data Documentation

◆ mMessage

const char* tklb::SectionClock::mMessage
private

Definition at line 68 of file TTimer.hpp.

◆ mStart

std::clock_t tklb::SectionClock::mStart
private

Definition at line 69 of file TTimer.hpp.


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