# Revision history [back]

I guess your script subscribes to nav_msgs/Odometry messages since you said you have a twist output. If you check the documentation of the message you'll find that there are different fields :

std_msgs/Header header
string child_frame_id
geometry_msgs/PoseWithCovariance pose
geometry_msgs/TwistWithCovariance twist


Your script gets the info from the fields pose and twist, if you want to get the time you have to check in the field header , and within the header there is the field time.

So in your script you probably have a print function with something like data.pose.pose.position in it. You just have to add data.header.time somewhere in your print.