move implementation of Duration(Rate) constructor

Addresses #30.

@ros/ros_team Please review.