15 #ifndef RCLCPP__DURATION_HPP_ 16 #define RCLCPP__DURATION_HPP_ 20 #include "builtin_interfaces/msg/duration.hpp" 38 template<
class Rep,
class Period>
41 :
Duration(
std::chrono::duration_cast<
std::chrono::nanoseconds>(duration))
45 Duration(
const builtin_interfaces::msg::Duration & duration_msg);
53 operator builtin_interfaces::msg::Duration()
const;
60 operator=(
const builtin_interfaces::msg::Duration & Duration_msg);
88 operator*(
double scale)
const;
101 from_seconds(
double seconds);
103 template<
class DurationT>
119 #endif // RCLCPP__DURATION_HPP_
DurationT to_chrono() const
Definition: duration.hpp:105
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
T duration_cast(T... args)
Duration(const std::chrono::duration< Rep, Period > &duration)
Definition: duration.hpp:40
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)