ReFRACtor
|
This is a simple timer class that can be used to accumulate the time spent in multiple calls to a function. More...
#include <accumulated_timer.h>
Public Member Functions | |
AccumulatedTimer (const std::string &Desc) | |
Create an AccumulatedTimer. More... | |
double | elapsed () const |
Total elapsed time. More... | |
FunctionTimer | function_timer (bool Auto_log=false) const |
Function timer. More... | |
void | print (std::ostream &Os) const |
std::string | print_to_string () const |
Print to string. More... | |
void | reset_elapsed () |
Reset elapsed time to 0. More... | |
Friends | |
class | FunctionTimerR |
This is a simple timer class that can be used to accumulate the time spent in multiple calls to a function.
You get a function timer from this class, which keeps track of the time that object exists and adds it to the elapsed time.
Definition at line 19 of file accumulated_timer.h.
|
inline |
Create an AccumulatedTimer.
The description is printed out when you print this object.
Definition at line 27 of file accumulated_timer.h.
|
inline |
Total elapsed time.
Definition at line 33 of file accumulated_timer.h.
|
inline |
Function timer.
Definition at line 88 of file accumulated_timer.h.
|
inline |
Definition at line 46 of file accumulated_timer.h.
|
inlineinherited |
Print to string.
This is primarily useful for SWIG wrappers to this class, e.g. a to_s method in ruby.
Definition at line 31 of file printable.h.
|
inline |
Reset elapsed time to 0.
Definition at line 39 of file accumulated_timer.h.
|
friend |
Definition at line 51 of file accumulated_timer.h.