RobWorkProject
24.12.4-
|
Times what is executed in a scope. More...
#include <ScopedTimer.hpp>
Public Member Functions | |
ScopedTimer (rw::common::Timer &timer) | |
constructor. Starts the timer More... | |
virtual | ~ScopedTimer () |
destructor, stops the timer | |
rw::common::Timer & | getTimer () |
Returns the time wrapped in the ScopedTimer. More... | |
Times what is executed in a scope.
Automatically calls resume on the timer given in construction and pause when destroyed.
|
inline |
constructor. Starts the timer
timer |
|
inline |
Returns the time wrapped in the ScopedTimer.