![]() |
Sleipnir C++ API
|
#include </home/runner/work/Sleipnir/Sleipnir/include/sleipnir/util/time_tracer.hpp>
Public Member Functions | |
| ScopedTimeTracer (Tracer &tracer) noexcept | |
| ~ScopedTimeTracer () | |
| Stops a tracer. | |
| ScopedTimeTracer (ScopedTimeTracer &&rhs) noexcept | |
| ScopedTimeTracer (const ScopedTimeTracer &)=delete | |
| ScopedTimeTracer & | operator= (const ScopedTimeTracer &)=delete |
| void | stop () |
| const std::chrono::duration< double > & | current_duration () const |
Starts a tracer in the constructor and stops it in the destructor.
| Tracer | Time tracer type. |
|
inlineexplicitnoexcept |
Starts a tracer.
| tracer | The tracer. |
|
inlinenoexcept |
Move constructor.
| rhs | The other ScopedTimeTracer. |
|
inline |
Returns the tracer's most recent solve duration in seconds.
|
inline |
Stops the tracer.
If this is called, the destructor is a no-op.