![]() |
WPILibC++ 2027.0.0-alpha-4
|
Starts a profiler in the constructor and stops it in the destructor. More...
Public Member Functions | |
| ScopedProfiler (Profiler &profiler) noexcept | |
| Starts a profiler. | |
| ~ScopedProfiler () | |
| Stops a profiler. | |
| ScopedProfiler (ScopedProfiler &&rhs) noexcept | |
| Move constructor. | |
| ScopedProfiler (const ScopedProfiler &)=delete | |
| ScopedProfiler & | operator= (const ScopedProfiler &)=delete |
| void | stop () |
| Stops the profiler. | |
| const std::chrono::duration< double > & | current_duration () const |
| Returns the most recent solve duration in milliseconds as a double. | |
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. |
|
delete |
|
inline |
Returns the most recent solve duration in milliseconds as a double.
|
delete |
|
inline |
Stops the profiler.
If this is called, the destructor is a no-op.