I've used ros::Time::now(), but I'm not sure if I should have used some real time function to retrieve the time.