![]() |
Galaxis Codebase
1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
|
#include <clock.hpp>
Public Member Functions | |
| MicroStopwatch () | |
| void | start () |
| long long | get () const |
| long long | get_time () const |
| long long | get_milliseconds () const |
| void | restart () |
Private Attributes | |
| long long | time = -1 |
| MicroStopwatch::MicroStopwatch | ( | ) |
| long long MicroStopwatch::get | ( | ) | const |
Definition at line 29 of file clock.cpp.
References galaxis::utils::get_time_now_us(), and time.
Referenced by get_milliseconds(), and get_time().


| long long MicroStopwatch::get_milliseconds | ( | ) | const |
Definition at line 37 of file clock.cpp.
References get().
Referenced by StopLineDetection::detect_startline(), StopLineDetection::on_stop_line_detection_callback(), and AutoPilotNode::send_full_map_debug_image().


| long long MicroStopwatch::get_time | ( | ) | const |
Definition at line 33 of file clock.cpp.
References get().
Referenced by galaxis::control::TwoAndAHalfCarrots::calculate_best_yaw_rate(), AutoPilotNode::controller_reference_publish_loop(), AutoPilotNode::debug_publish_loop(), AutoPilotNode::on_vci_lane_detection_callback(), and AutoPilotNode::send_controller_references().


| void MicroStopwatch::restart | ( | ) |
| void MicroStopwatch::start | ( | ) |
Definition at line 25 of file clock.cpp.
References galaxis::utils::get_time_now_us(), and time.
Referenced by galaxis::control::TwoAndAHalfCarrots::calculate_best_yaw_rate(), MicroStopwatch(), and restart().


|
private |