35 #ifndef _ROS_DURATION_H_ 36 #define _ROS_DURATION_H_ 52 Duration(int32_t _sec, int32_t _nsec) : sec(_sec), nsec(_nsec)
59 return (
double)sec + 1e-9 * (double)nsec;
61 void fromSec(
double t)
63 sec = (uint32_t) floor(t);
64 nsec = (uint32_t) round((t - sec) * 1e9);
ROSTIME_DECL void normalizeSecNSecSigned(int64_t &sec, int64_t &nsec)