add compare function for ros::time

not necessary, but we may be able to save some time with this.