add compare function for ros::time