Starts a profiler in the constructor and stops it in the destructor.
More...
#include <sleipnir/util/scoped_profiler.hpp>
Starts a profiler in the constructor and stops it in the destructor.
◆ ScopedProfiler() [1/2]
Starts a profiler.
- Parameters
-
◆ ScopedProfiler() [2/2]
Move constructor.
- Parameters
-
◆ current_duration()
Returns the most recent solve duration in milliseconds as a double.
- Returns
- The most recent solve duration in milliseconds as a double.
◆ stop()
Stops the profiler.
If this is called, the destructor is a no-op.
The documentation for this class was generated from the following file: