add compare function for ros::time
simplify function
Merge pull request #186 from chiwunau/master

add compare function for ros::time