Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ros::Time::now() gives you an actual time stamp as an object. toSec() just converts this into a double represenation in seconds. Subtracting time stamps and calling toSec() on this should work and give you correct results.