ROS2.0 Timing/Duration Help
Hi everyone,
I am very new to using ROS2.0 (Foxy). Im working on a project that uses a publisher/subscriber to send messages. I need to know the time in between when messages are received (i.e. message 1 comes in at time 0, message 2 comes in at time 10, therefore the amount of time between the messages equals 10).
I have scoured the ROS documentation and found out about the "rclcpp::Time" and "rclcpp::Duration" client libraries, but i am having a very hard time understanding how to use them.
Any help/links to guided use of these libraries/written guide would be very helpful!
Much thanks, - New ROS User