==== Time ==== To preserve the accuracy and allow for compatible serialization of message objects, anonymous wrappers for :cpp:class:`Time ` and :cpp:class:`Duration ` were introduced. These wrapper types are used for time and duration fields in received messages and the current time can be obtained using the ``Ros2.now()`` method of the :ref:`Ros2 Singleton`. Example: .. code-block:: qml property var currentTime: Ros2.now() Both wrapper types can be converted to QML/JavaScript ``Date`` objects using the :cpp:func:`toJSDate() ` method at the cost of micro- and nanosecond accuracy. Please note that due to limitations in QML and JavaScript mathematical operations for Time and Duration are not possible. API --- .. doxygenclass:: qml_ros2_plugin::Time :members: .. doxygenclass:: qml_ros2_plugin::Duration :members: .. doxygenenum:: qml_ros2_plugin::ros_clock_types::Ros2ClockTypes :project: project