21 _printActions(printActions)
23 , _doingAnAction(false)
33 fputs(message, stderr);
41 _doingAnAction =
true;
54 _doingAnAction =
false;
void printMessage(const char *message)
Prints message to standard error if printing is turned on.
void beginAction(const char *message)
Prints message to standard error if printing is turned on, and records the time when the action start...
void endAction()
Prints to standard error the time since the last call to beginAction.
Facade(bool printActions)
Constructs a facade that prints out what it is doing if printActions is true.
bool isPrintingActions() const
Returns true if printing actions.
bool _printActions
Keeps track of whether we are printing.
Timer _timer
Keeps track of the time between calls to beginAction() and endAction().
void print(FILE *out) const
Prints the elapsed time in a human readable format.
void reset()
Resets the amount of elapsed CPU time to zero.