def _get_result_color(time_taken):
    """Get time taken result color."""
    time_taken_ms = time_taken * 1000
    if time_taken_ms <= 1000:
        color = "green"
    elif time_taken_ms <= 3000:
        color = "yellow"
    else:
        color = "red"

    return color