Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

Impala::Util::TimeStats Class Reference

This class provides a way to measure a number of items a number of times. More...

#include <TimeStats.h>

Collaboration diagram for Impala::Util::TimeStats:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TimeStats (bool relative=false)
void AddGroup (CString name)
void AddGroupsFromSub (TimeStats *sub)
void MeasureFirst ()
void MeasureNext ()
void MeasureFromSub (TimeStats *sub)
void MeasureLast ()
void Print (std::ostream &os)
String AsString ()
int NrGroups () const
GroupGetCurrentGroup ()
GroupGetGroup (int number)
const GroupSelectGroup (CString name)
const GroupSelectGroup (int number)
void StartTime ()
void StopTime ()
void Reset ()
void ComputePercentages ()

Protected Attributes

Timer mClock
std::vector< Group * > mGroups
int mCurrentGroup
bool mIsTiming
bool mRelative
double mGrandTotal
 ILOG_VAR_DEC

Friends

std::ostream & operator<< (std::ostream &os, TimeStats &stats)

Classes

class  Group

Detailed Description

This class provides a way to measure a number of items a number of times.

For example, one might time construction, processing and deletion of an item in a for loop. Measurements are grouped in groups (see AddGroup()).

Definition at line 18 of file TimeStats.h.


The documentation for this class was generated from the following file:
Generated on Thu Jan 13 09:24:23 2011 for ImpalaSrc by  doxygen 1.5.1