|
Nav2 Navigation Stack - kilted
kilted
ROS 2 Navigation Stack
|
Measures execution time of code between calls to start and end. More...
#include <nav2_util/include/nav2_util/execution_timer.hpp>
Public Types | |
| using | Clock = std::chrono::high_resolution_clock |
| using | nanoseconds = std::chrono::nanoseconds |
Public Member Functions | |
| void | start () |
| Call just prior to code you want to measure. | |
| void | end () |
| Call just after the code you want to measure. | |
| nanoseconds | elapsed_time () |
| Extract the measured time as an integral std::chrono::duration object. | |
| double | elapsed_time_in_seconds () |
| Extract the measured time as a floating point number of seconds. | |
Protected Attributes | |
| Clock::time_point | start_ |
| Clock::time_point | end_ |
Measures execution time of code between calls to start and end.
Definition at line 24 of file execution_timer.hpp.