A simple progress indicator. More...
#include <include/CepGen/Utils/ProgressBar.h>
Public Member Functions | |
ProgressBar (size_t total, size_t period=10) | |
Progress bar constructor. | |
~ProgressBar () | |
void | reset () |
Reset the progress bar to its initial state. | |
void | setTimer (bool timer_enabled=true) |
Enable the timer? Broadcast the current progress to the bar. | |
void | update (size_t iter) const |
Definition at line 28 of file ProgressBar.h.
|
explicit |
[in] | total | Total number of steps before completion |
[in] | period | Periodicity of ticks refreshing |
~ProgressBar | ( | ) |
void reset | ( | ) |
void setTimer | ( | bool | timer_enabled = true | ) |
[in] | iter | Current iteration |
Definition at line 37 of file ProgressBar.h.
void update | ( | size_t | iter | ) | const |