BioDynaMo
v1.05.120-25dc9790
|
Go to the documentation of this file.
15 #ifndef PROGRESS_BAR_H_
16 #define PROGRESS_BAR_H_
67 void Step(uint64_t steps = 1);
79 #endif // PROGRESS_BAR_H_
void SetTimeUnit(const std::string &time_unit)
int64_t start_time_
Timestamp when to when the progress bar was initialized.
std::string time_unit_
Time unit string for elapsed and remaining time.
uint64_t total_steps_
Total number of steps to be executed.
real_t time_conversion_factor_
Variable for conversion of time units (e.g. 1000 for ms to s).
void PrintProgressBar(std::ostream &out=std::cout)
Prints the progress bar.
void Step(uint64_t steps=1)
Inceases the counter executed_steps_ by steps.
uint64_t executed_steps_
Number of steps that have already been executed.
This class implements a progress bar that can be used to track the progress of a simulation.