added the get_time routine