:py:mod:`phoenix6.utils` ======================== .. py:module:: phoenix6.utils Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: phoenix6.utils.get_current_time_seconds phoenix6.utils.get_monotonic_time_seconds phoenix6.utils.is_simulation phoenix6.utils.is_replay .. py:function:: get_current_time_seconds() -> phoenix6.units.second Get the current timestamp in seconds. This is the time source used for status signals. This time source is typically continuous and monotonic. However, it may be overridden in simulation to use a non-monotonic, non-continuous source. :returns: Current time in seconds :rtype: second .. py:function:: get_monotonic_time_seconds() -> phoenix6.units.second Get the system monotonic timestamp in seconds. This is NOT the time source used for status signals. Use GetCurrentTImeSeconds instead when working with status signal timing. This time source is guaranteed to be continuous and monotonic, making it useful for measuring time deltas in a robot program. :returns: System monotonic time in seconds :rtype: second .. py:function:: is_simulation() -> bool Get whether the program is running in simulation. :returns: True if in simulation :rtype: bool .. py:function:: is_replay() -> bool Get whether the program is running in replay mode. :returns: True if in replay mode :rtype: bool