19 #include "ros/duration.h"
25 int32_t nsec_part = nsec;
26 int32_t sec_part = sec;
28 while (nsec_part > 1000000000L)
30 nsec_part -= 1000000000L;
35 nsec_part += 1000000000L;
42 Duration& Duration::operator+=(
const Duration &rhs)
50 Duration& Duration::operator-=(
const Duration &rhs){
57 Duration& Duration::operator*=(
double scale){