double getParticleUpdatesPerSecond() const
Get the particle updates per second.
void logSummary(int depth) const override
Logs the summary of the particle update counter.
double particle_updates_per_second
void operator()(size_t iteration, Simulation &simulation) override
This function is called on every nth iteration. It counts the number of particle updates which have b...
void onSimulationStart(Simulation &simulation) override
This function is sets the particle_updates to 0 and initializes the start time of the simulation.
std::chrono::high_resolution_clock::time_point t_end
void onSimulationEnd(size_t iteration, Simulation &simulation) override
This function is empty as the thermostat doesnt need to do anything at the end of the simulation.
std::chrono::milliseconds::rep t_diff
std::chrono::high_resolution_clock::time_point t_start