ros time now example Example: ros duration to seconds double secs =ros::Time::now().toSec(); ros::Duration d(0.5); secs = d.toSec();