|
SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
|
Measure solves explicitly while retaining an ordinary progress or stop callback. More...
#include <observers.hpp>
Public Member Functions | |
| TimedObserver (SolveTiming &timing, Observer observer={}) | |
| Borrow the timing destination and own the user's callback. | |
| void | started () |
| Begin measurement when the solver starts evaluating its initial state. | |
| void | finished (SolveStatus status, const SolveDiagnostics &diagnostics) |
| Accumulate a normally completed call independently of its convergence status. | |
| decltype(auto) | operator() (SolveEvent event, const auto &state, const auto &system) |
| Preserve the callback's void or stop-request return type. | |
Private Attributes | |
| SolveTiming & | m_timing |
| Observer | m_observer |
| std::chrono::steady_clock::time_point | m_start |
Measure solves explicitly while retaining an ordinary progress or stop callback.
|
inlineexplicit |
Borrow the timing destination and own the user's callback.
|
inline |
Accumulate a normally completed call independently of its convergence status.
|
inline |
Preserve the callback's void or stop-request return type.
|
inline |
Begin measurement when the solver starts evaluating its initial state.
|
private |
|
private |
|
private |