Template Function cras::convertTime(const T1&, const ::rcl_clock_type_t)
Defined in File time_utils.hpp
Function Documentation
-
template<typename T1, typename ::std::enable_if_t<::cras::TimeType<T1>::value>* = nullptr>
::rclcpp::Time cras::convertTime(const T1 &t, const ::rcl_clock_type_t clockType) Convert between various time representations.
- Template Parameters:
T1 – The output type.
- Parameters:
t – [in] The time to convert.
clockType – [in] The clock type of the output.
- Returns:
The converted time with the given clock type.