Ask Your Question

Revision history [back]

Both, ros::durationBase (API Doc) as well as ros::timeBase (API Doc) contain the respective toSec() functions which return a double. What you did is not required!