Eidolon
Public Member Functions | Public Attributes | List of all members
TimingObject Class Reference

This type is used with the TIMING and TIMINGBLOCK macros to time routine calls and code blocks, printing a time delta value to stdout. More...

#include <RenderTypes.h>

Collaboration diagram for TimingObject:
Collaboration graph

Public Member Functions

 TimingObject (const std::string &label, bool doPrint=true)
 
 ~TimingObject ()
 
void stopTiming ()
 
bool loopOnce ()
 

Public Attributes

clock_t start
 
clock_t stop
 
double delta
 
bool doPrint
 
bool entered
 
std::string label
 

Detailed Description

This type is used with the TIMING and TIMINGBLOCK macros to time routine calls and code blocks, printing a time delta value to stdout.

Constructor & Destructor Documentation

◆ TimingObject()

TimingObject ( const std::string &  label,
bool  doPrint = true 
)
inline

◆ ~TimingObject()

~TimingObject ( )
inline

Member Function Documentation

◆ loopOnce()

bool loopOnce ( )
inline

◆ stopTiming()

void stopTiming ( )
inline

Member Data Documentation

◆ delta

double delta

◆ doPrint

bool doPrint

◆ entered

bool entered

◆ label

std::string label

◆ start

clock_t start

◆ stop

clock_t stop

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