$darkmode
engine::SimulationProgress Class Reference

#include <simulation_progress.hpp>

Collaboration diagram for engine::SimulationProgress:

Public Member Functions

void init_begin (size_t n)
 
void init (const std::string &what)
 
void init_end ()
 
bool is_init_ended () const
 
cloe::Duration elapsed () const
 
void exec_begin ()
 
void exec_update (double p)
 
void exec_update (cloe::Duration now)
 
void exec_end ()
 
bool is_exec_ended () const
 
bool exec_report ()
 

Public Attributes

std::string stage {""}
 
std::string message {"initializing engine"}
 
Progress initialization
 
size_t initialization_n
 
size_t initialization_k
 
Progress execution
 
cloe::Duration execution_eta {0}
 
double report_granularity_p {0.1}
 
cloe::Duration report_granularity_d {10'000'000'000}
 
double execution_report_p
 
TimePoint execution_report_t
 

Friends

void to_json (cloe::Json &j, const SimulationProgress &p)
 

Detailed Description

SimulationProgress represents the progress of the simulation, split into initialization and execution phases.

Member Function Documentation

◆ exec_report()

bool engine::SimulationProgress::exec_report ( )
inline

Return true and store the current progress percentage and time if the current percentage is granularity_p ahead or at least granularity_d has elapsed since the last report.

Here is the call graph for this function:

The documentation for this class was generated from the following file: