def do_timer(goal):
    start_time = time.time()
    time.sleep(goal.time_to_wait.to_sec())
    # END PART_2
    # BEGIN PART_3
    result = TimerResult()
    result.time_elapsed = rospy.Duration.from_sec(time.time() - start_time)
    result.updates_sent = 0
    # END PART_3
    # BEGIN PART_4
    server.set_succeeded(result)
    # END PART_4
dataset/ETHPy150Open osrf/rosbook/code/basics/src/simple_action_server.py/do_timer/original