LightsprintSDK 2021.08.08
rr::RRReportInterval Class Reference

#include <RRDebug.h>

Public Member Functions

 RRReportInterval (RRReportType type, const char *format,...)
 
 ~RRReportInterval ()
 

Protected Attributes

bool enabled
 
RRTime time
 

Detailed Description

Reporting events with time taken.

Helper for reporting event with automatic indented subevents, reported duration. Simply create instance of RRReportInterval to report event. When instance dies, end of event is reported automatically.

Constructor & Destructor Documentation

◆ RRReportInterval()

rr::RRReportInterval::RRReportInterval ( RRReportType  type,
const char *  format,
  ... 
)

Reports information and increases indentation.

◆ ~RRReportInterval()

rr::RRReportInterval::~RRReportInterval ( )

Reports time elapsed since constructor call and decreases indentation.

Member Data Documentation

◆ enabled

bool rr::RRReportInterval::enabled
protected

◆ time

RRTime rr::RRReportInterval::time
protected