Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
Logger::Timer Class Reference

Public Member Functions

double latestValuesAverage () const
 
const QString & name () const
 
void setIgnoreZeroValues (bool ignore)
 
void setNumValuesLimit (int limit)
 
void start ()
 
qint64 tick ()
 
double totalAverage () const
 
const QList< qint64 > values () const
 

Static Public Member Functions

static void removeAllTimers ()
 
static Timerstart (const QString &timer)
 
static qint64 tick (const QString &timer)
 
static Timertimer (const QString &timer)
 
static QStringList timerNames ()
 

Private Member Functions

 Timer ()
 

Static Private Member Functions

static QMap< QString, Timer * > & timers ()
 

Private Attributes

bool ignoreZeroValues_ {true}
 
QString name_
 
int numValuesLimit_ {10}
 
QElapsedTimer qtTimer_
 
qint64 totalCount_ {}
 
qint64 totalSum_ {}
 
QList< qint64 > values_
 

Constructor & Destructor Documentation

◆ Timer()

Logger::Timer::Timer ( )
private

Member Function Documentation

◆ latestValuesAverage()

double Logger::Timer::latestValuesAverage ( ) const

◆ name()

const QString & Logger::Timer::name ( ) const
inline

◆ removeAllTimers()

void Logger::Timer::removeAllTimers ( )
static

◆ setIgnoreZeroValues()

void Logger::Timer::setIgnoreZeroValues ( bool  ignore)
inline

◆ setNumValuesLimit()

void Logger::Timer::setNumValuesLimit ( int  limit)

◆ start() [1/2]

void Logger::Timer::start ( )

◆ start() [2/2]

Timer * Logger::Timer::start ( const QString &  timer)
inlinestatic

◆ tick() [1/2]

qint64 Logger::Timer::tick ( )

◆ tick() [2/2]

qint64 Logger::Timer::tick ( const QString &  timer)
inlinestatic

◆ timer()

Timer * Logger::Timer::timer ( const QString &  timer)
static

◆ timerNames()

QStringList Logger::Timer::timerNames ( )
inlinestatic

◆ timers()

QMap< QString, Timer * > & Logger::Timer::timers ( )
staticprivate

◆ totalAverage()

double Logger::Timer::totalAverage ( ) const
inline

◆ values()

const QList< qint64 > Logger::Timer::values ( ) const
inline

Member Data Documentation

◆ ignoreZeroValues_

bool Logger::Timer::ignoreZeroValues_ {true}
private

◆ name_

QString Logger::Timer::name_
private

◆ numValuesLimit_

int Logger::Timer::numValuesLimit_ {10}
private

◆ qtTimer_

QElapsedTimer Logger::Timer::qtTimer_
private

◆ totalCount_

qint64 Logger::Timer::totalCount_ {}
private

◆ totalSum_

qint64 Logger::Timer::totalSum_ {}
private

◆ values_

QList<qint64> Logger::Timer::values_
private