def print_time(duration):
    """
    Function to print the time elapsed for the most recent step,
    given the current time
    """

    if duration < 1:
        print("That Took {} mS  !".format(round(duration*1000, 2)))
    elif duration < 60:
        print("That Took {} Sec !".format(round(duration, 2)))
    elif duration < 3600:
        print("That Took {} Min !".format(round(duration/60, 2)))
    else:
        print("That Took {} Hrs !".format(round(duration/3600, 2)))
    return duration