![]() |
Sleipnir C++ API
|
#include <sleipnir/util/scoped_profiler.hpp>
Public Member Functions | |
ScopedProfiler (Profiler &profiler) noexcept | |
~ScopedProfiler () | |
ScopedProfiler (ScopedProfiler &&rhs) noexcept | |
ScopedProfiler (const ScopedProfiler &)=delete | |
ScopedProfiler & | operator= (const ScopedProfiler &)=delete |
void | stop () |
const std::chrono::duration< double > & | current_duration () const |
Starts a profiler in the constructor and stops it in the destructor.
|
inlineexplicitnoexcept |
Starts a profiler.
profiler | The profiler. |
|
inline |
Stops a profiler.
|
inlinenoexcept |
Move constructor.
rhs | The other ScopedProfiler. |
|
inline |
Returns the most recent solve duration in milliseconds as a double.
|
inline |
Stops the profiler.
If this is called, the destructor is a no-op.