Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

resmes Struct Reference

#include <resmes.h>

List of all members.

Public Member Functions

 resmes ()
void set_desc (const string &d)
void start ()
void stop ()

Private Attributes

string desc
timeval start_time
size_t depth
vector< double > periods

Friends

ostream & operator<< (ostream &os, const resmes &res)


Detailed Description

A resource measurer. By calling start() and stop(), you get measuring periods for this resource.


Constructor & Destructor Documentation

resmes::resmes  ) 
 

Default constructor.


Member Function Documentation

void resmes::set_desc const string &  d  ) 
 

Sets the description of this resource.

Parameters:
d the description.

void resmes::start  ) 
 

Start a measuring period for this resource. This will start the timer. Recursive calls to start will only increase the recursion depth counter.

void resmes::stop  ) 
 

Stop a measuring period for this resource. If this is the outermost call (not after a recursive start call), the time between is measured and added to the list of time periods.


Friends And Related Function Documentation

ostream& operator<< ostream &  os,
const resmes res
[friend]
 

Write a text representation of this resource measurement to an ostream.

Parameters:
os the ostream to write to.
res the measurement to write.


Member Data Documentation

size_t resmes::depth [private]
 

The current recursion depth.

string resmes::desc [private]
 

The description of this measurement.

vector<double> resmes::periods [private]
 

The time periods measured for this resource.

timeval resmes::start_time [private]
 

The time at the start of the current measurement.


The documentation for this struct was generated from the following files:
Generated on Wed Feb 16 20:54:57 2005 for Fixpoint Engine by  doxygen 1.3.9.1