util¶
The util module contains some utility functions that have no good place elsewhere but are not for internal use only (otherwise they would live in cyclonedds.internal).
- cyclonedds.util.isgoodentity(v)[source]¶
- Helper function that checks to see if an object is a valid - Entityreturned from DDS. This function will never raise an exception.
- cyclonedds.util.duration(*, weeks=0, days=0, hours=0, minutes=0, seconds=0, milliseconds=0, microseconds=0, nanoseconds=0, infinite=False)[source]¶
- Durations are always expressed in nanoseconds in DDS (dds_duration_t). This helper function lets you write time in a human readable format. - Examples - >>> duration(weeks=2, days=10, minutes=10) - Parameters:
- Returns:
- Duration expressed in nanoseconds. 
- Return type: