SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
Utils::AverageTimingBlock Struct Reference

concatenation of average value and timer More...

#include <AverageTiming.h>

Public Member Functions

 AverageTimingBlock (int averageNumValues, std::string name, int posV, int posH)
 

Public Attributes

AvgFloat val
 
std::string name
 
HighResTimer timer
 
int posV = 0
 
int posH = 0
 
int nCalls = 0
 
bool isStarted = false
 

Detailed Description

concatenation of average value and timer

Define a hierarchy by posV and posH which is used in ui to arrange the measurements. The first found content with posV==0 is used as reference measurement for the percental value.

Definition at line 28 of file AverageTiming.h.

Constructor & Destructor Documentation

◆ AverageTimingBlock()

Utils::AverageTimingBlock::AverageTimingBlock ( int  averageNumValues,
std::string  name,
int  posV,
int  posH 
)
inline

Definition at line 30 of file AverageTiming.h.

31  : val(averageNumValues, 0.0f),
32  name(std::move(name)),
33  posV(posV),
34  posH(posH)
35  {
36  }

Member Data Documentation

◆ isStarted

bool Utils::AverageTimingBlock::isStarted = false

Definition at line 43 of file AverageTiming.h.

◆ name

std::string Utils::AverageTimingBlock::name

Definition at line 38 of file AverageTiming.h.

◆ nCalls

int Utils::AverageTimingBlock::nCalls = 0

Definition at line 42 of file AverageTiming.h.

◆ posH

int Utils::AverageTimingBlock::posH = 0

Definition at line 41 of file AverageTiming.h.

◆ posV

int Utils::AverageTimingBlock::posV = 0

Definition at line 40 of file AverageTiming.h.

◆ timer

HighResTimer Utils::AverageTimingBlock::timer

Definition at line 39 of file AverageTiming.h.

◆ val

AvgFloat Utils::AverageTimingBlock::val

Definition at line 37 of file AverageTiming.h.


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