VR-Forces 4.0.4 Class Documentation
Public Member Functions | Public Attributes
makVrv::DtStatsSet Class Reference

Set of performance statistics for display. More...

List of all members.

Public Member Functions

void addStats (const std::string &name)
 Add a time stat to the set.
void startFrame ()
 Start a timing frame.
void endFrame (double frameDuration)
 End a timing frame.
void addTime (unsigned int index, double t)
 Add time to the statistic at the specified index.

Public Attributes

std::vector< DtTimeStatmyStats
double myTotalTime
std::vector< double > myPerFrameStats
DtPerformanceStats myStatsTimer
std::string myName

Detailed Description

Set of performance statistics for display.


Member Function Documentation

void makVrv::DtStatsSet::addStats ( const std::string &  name)

Add a time stat to the set.

Start a timing frame.

Called by the stats manager at the beginning of each tick

void makVrv::DtStatsSet::endFrame ( double  frameDuration)

End a timing frame.

Called by the stats manager at the end of each tick

void makVrv::DtStatsSet::addTime ( unsigned int  index,
double  t 
)

Add time to the statistic at the specified index.

Time is accumulated per frame to calculate percentages


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)