42#define RCLC_CONTAINER_OF(ptr, type, member) ((type*)(void*)((char*)(ptr)-offsetof(type, member)))
107 if (start == NULL || finish == NULL || delta == NULL) {
#define RCL_RET_OK
Definition nros_generated.h:3489
#define RCL_RET_INVALID_ARGUMENT
Definition nros_generated.h:3504
int64_t rclc_time_to_nanoseconds(const struct rclc_time_t *time)
struct rcl_duration_t rclc_duration_from_nanoseconds(int64_t nanoseconds)
int rcl_ret_t
Definition nros_generated.h:977
Umbrella header for the nano-ros C API, at upstream's path.
Definition nros_generated.h:996
Definition nros_generated.h:982
static rcl_ret_t rcl_difference_times(const struct rclc_time_t *start, const struct rclc_time_t *finish, struct rcl_duration_t *delta)
Compute the duration between two time points: finish - start.
Definition timer.h:104
Shared types and constants for the nros C API.