def format_time(value: float) ->str:
    """Convert time to nicer format"""
    if value <= 0.005:
        return f'{value * 1000000:.0f}us'
    elif value <= 0.1:
        return f'{value * 1000:.1f}ms'
    elif value > 86400:
        return f'{value / 86400:.2f}day'
    elif value > 1800:
        return f'{value / 3600:.2f}hr'
    elif value > 60:
        return f'{value / 60:.2f}min'
    return f'{value:.2f}s'
