Function anj_time_duration_add

Function Documentation

static inline anj_time_duration_t anj_time_duration_add(const anj_time_duration_t lhs, const anj_time_duration_t rhs)

Adds two durations.

Warning

No overflow checking is performed.

Parameters:
  • lhs – Left-hand operand.

  • rhs – Right-hand operand.

Returns:

lhs + rhs, or ANJ_TIME_DURATION_INVALID if any operand is invalid.