![]() |
Sleipnir C++ API
|
#include </home/runner/work/Sleipnir/Sleipnir/include/sleipnir/util/time_tracer.hpp>
Public Member Functions | |
| SetupTimeTracer ()=default | |
| Constructs an enabled tracer. | |
| SetupTimeTracer (bool enabled) | |
| void | start () |
| Starts setup time measurement. | |
| void | stop () |
| Stops setup time measurement. | |
| const std::chrono::duration< double > & | duration () const |
Records the duration between the most recent start and stop call.
Unlike SolveTimeTracer, this doesn't count measurements or average them, so it's meant for steps that run once, like autodiff setup.
|
inlineexplicit |
Constructs a tracer.
| enabled | Whether to measure time. |
|
inline |
Returns the setup duration in seconds.