#include <resmes.h>
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) |
|
Default constructor. |
|
Sets the description of this resource.
|
|
Start a measuring period for this resource. This will start the timer. Recursive calls to start will only increase the recursion depth counter. |
|
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. |
|
Write a text representation of this resource measurement to an ostream.
|
|
The current recursion depth. |
|
The description of this measurement. |
|
The time periods measured for this resource. |
|
The time at the start of the current measurement. |