def pretty_print_time(time, message=None):
    """Pretty print the given time"""
    days = time.days
    hours, remainder = divmod(time.seconds, 3600)
    minutes, seconds = divmod(remainder, 60)
    if message is not None:
        print(message)
        print(f'\t {days} days, {hours} hours, {minutes} minutes, {seconds} seconds')
    # Print out fractional days things have been in this state
    total = days + hours/24. + minutes/(24.*60) + seconds/(24.*3600)
    return f"{total:.1f}"