Function rmw_time_from_nsec
Defined in File time.h
Function Documentation
-
rmw_time_t rmw_time_from_nsec(const rmw_duration_t nanoseconds)
Construct rmw_time_t from a total nanoseconds representation.
rmw_time_t only specifies relative time, so the origin is not relevant for this calculation.
- Returns:
RMW_DURATION_INFINITE if input is negative, which is not representable in rmw_time_t