36 #include "ros/duration.h"
42 int32_t nsec_part = nsec;
43 int32_t sec_part = sec;
45 while (nsec_part > 1000000000L)
47 nsec_part -= 1000000000L;
52 nsec_part += 1000000000L;
59 Duration& Duration::operator+=(
const Duration &rhs)
67 Duration& Duration::operator-=(
const Duration &rhs)
75 Duration& Duration::operator*=(
double scale)