43 explicit operator std::string()
const override;
52 std::chrono::high_resolution_clock::time_point
t_start;
53 std::chrono::high_resolution_clock::time_point
t_end;
54 std::chrono::high_resolution_clock::time_point
t_prev;
std::chrono::high_resolution_clock::time_point t_end
void logSummary(int depth) const override
Logs the summary of the progress bar.
double last_particle_updates_per_second
void onSimulationEnd(size_t iteration, Simulation &simulation) override
This function is empty as the progress bar doesnt need to do anything at the end of the simulation.
void operator()(size_t iteration, Simulation &simulation) override
This function is called on every nth iteration. It prints a progress bar to the console and updates t...
std::chrono::high_resolution_clock::time_point t_start
size_t expected_iterations
double last_remaining_seconds
std::chrono::high_resolution_clock::time_point t_prev
void onSimulationStart(Simulation &simulation) override
This function initalized the start time of the simulation and the previous time point.
size_t last_particle_count
Class to run a simulation.