15 #ifndef RCLCPP__DURATION_HPP_ 16 #define RCLCPP__DURATION_HPP_ 20 #include "builtin_interfaces/msg/duration.hpp" 36 template<
class Rep,
class Period>
39 :
Duration(
std::chrono::duration_cast<
std::chrono::nanoseconds>(duration))
43 Duration(
const builtin_interfaces::msg::Duration & duration_msg);
51 operator builtin_interfaces::msg::Duration()
const;
58 operator=(
const builtin_interfaces::msg::Duration & Duration_msg);
86 operator*(
double scale)
const;
97 template<
class DurationT>
113 #endif // RCLCPP__DURATION_HPP_
DurationT to_chrono() const
Definition: duration.hpp:99
This header provides the get_node_topics_interface() template function.
Definition: allocator_common.hpp:24
T duration_cast(T... args)
Duration(const std::chrono::duration< Rep, Period > &duration)
Definition: duration.hpp:38
Definition: duration.hpp:26
rcutils_duration_value_t rcl_duration_value_t
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
Time operator+(const rclcpp::Duration &lhs, const rclcpp::Time &rhs)