21 _printActions(printActions)
23 , _doingAnAction(false)
33 fputs(message, stderr);
41 _doingAnAction =
true;
54 _doingAnAction =
false;
bool _printActions
Keeps track of whether we are printing.
void reset()
Resets the amount of elapsed CPU time to zero.
void endAction()
Prints to standard error the time since the last call to beginAction.
bool isPrintingActions() const
Returns true if printing actions.
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...
Facade(bool printActions)
Constructs a facade that prints out what it is doing if printActions is true.
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.