10#include <rclcpp/time.hpp>
12#include "smooth/feedback/time.hpp"
14namespace smooth::feedback {
21 static rclcpp::Time
plus(rclcpp::Time t,
double t_dbl) {
return t + rclcpp::Duration::from_seconds(t_dbl); }
24 static double minus(rclcpp::Time t2, rclcpp::Time t1)
26 return (t2 - t1).to_chrono<std::chrono::duration<double>>().count();
A Time type supports right-addition with a double, and subtraction of two time types should be conver...
static double minus(rclcpp::Time t2, rclcpp::Time t1)
Time minus Time.
static rclcpp::Time plus(rclcpp::Time t, double t_dbl)
Time plus double.
Trait class to specify Time operations.