NorMIT-nav  2023.01.05-dev+develop.0da12
An IGT application
cx::CyclicActionLogger Class Reference

#include <cxCyclicActionLogger.h>

Public Member Functions

 CyclicActionLogger ()
 
 CyclicActionLogger (QString name)
 
void reset (int interval=1000)
 
void begin ()
 start timing for this cycle More...
 
void time (QString id)
 store time from begin or last time() More...
 
double getFPS ()
 
bool intervalPassed () const
 
QString dumpStatistics ()
 
QString dumpStatisticsSmall ()
 
int getTime (QString id)
 
int getTotalLoggedTime ()
 Total time contained in entered id's (id outside is not counted) More...
 

Detailed Description

Helper class for counting time spent by the rendering process or other process running in a cycle.

Date
Oct 19, 2010
Oct 16, 2012
Author
christiana

Definition at line 36 of file cxCyclicActionLogger.h.

Constructor & Destructor Documentation

◆ CyclicActionLogger() [1/2]

cx::CyclicActionLogger::CyclicActionLogger ( )

Definition at line 23 of file cxCyclicActionLogger.cpp.

◆ CyclicActionLogger() [2/2]

cx::CyclicActionLogger::CyclicActionLogger ( QString  name)
explicit

Definition at line 30 of file cxCyclicActionLogger.cpp.

Member Function Documentation

◆ begin()

void cx::CyclicActionLogger::begin ( )

start timing for this cycle

Definition at line 45 of file cxCyclicActionLogger.cpp.

◆ dumpStatistics()

QString cx::CyclicActionLogger::dumpStatistics ( )

Definition at line 83 of file cxCyclicActionLogger.cpp.

◆ dumpStatisticsSmall()

QString cx::CyclicActionLogger::dumpStatisticsSmall ( )

Definition at line 124 of file cxCyclicActionLogger.cpp.

◆ getFPS()

double cx::CyclicActionLogger::getFPS ( )

return frames per second during the last interval.

Definition at line 69 of file cxCyclicActionLogger.cpp.

◆ getTime()

int cx::CyclicActionLogger::getTime ( QString  id)

Definition at line 168 of file cxCyclicActionLogger.cpp.

◆ getTotalLoggedTime()

int cx::CyclicActionLogger::getTotalLoggedTime ( )

Total time contained in entered id's (id outside is not counted)

Definition at line 190 of file cxCyclicActionLogger.cpp.

◆ intervalPassed()

bool cx::CyclicActionLogger::intervalPassed ( ) const

Definition at line 78 of file cxCyclicActionLogger.cpp.

◆ reset()

void cx::CyclicActionLogger::reset ( int  interval = 1000)

Definition at line 38 of file cxCyclicActionLogger.cpp.

◆ time()

void cx::CyclicActionLogger::time ( QString  id)

store time from begin or last time()

Definition at line 50 of file cxCyclicActionLogger.cpp.


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