def get_elapsed_time_string(elapsed_time, rounding=3):
    """Format elpased time

    Parameters
    ----------
    elapsed_time : float
        Elapsed time in seconds

    rounding : int
        Number of decimal places to round

    Returns
    -------
    processing_time : float
        Scaled amount elapsed time

    processing_time_unit : str
        Time unit, either seconds, minutes, or hours

    """

    if elapsed_time < 60:
        processing_time = elapsed_time
        processing_time_unit = "seconds"

    elif 60 <= elapsed_time < 60**2:
        processing_time = elapsed_time/60
        processing_time_unit = "minutes"

    else:
        processing_time = elapsed_time/(60**2)
        processing_time_unit = "hours"

    processing_time = round(processing_time, rounding)

    return processing_time, processing_time_unit