Conversation
|
But what about systems that don't have |
|
given that |
I don't know of any systems which cannot represent https://discourse.ros.org/t/of-clocks-and-simulation-betimes-and-otherwise/1587/7
Bash probably uses it in combination with a 32-bit seconds field too, but I don't know since you didn't link to what you're referring. I don't think it makes sense to use
That's because it is a duration. In
Indeed, not all representations of time that could be used with these macros must be unsigned or even integers. You could perfectly well do this: double nanoseconds = RCUTILS_S_TO_NS(1.3);You might need to consider the consequences of doing that (loss of floating point precision, etc) but it's totally valid. |
|
closing in favor of commit: ros2/rclcpp@89b6b6f |
connects to ros2/rclcpp#352