def duration(duration_ms: float) ->str:
    """
    Formats duration into a string logged in stats

    :param duration_ms: Duration in milliseconds
    :return: formatted duration
    """
    return '{:.2f}ms'.format(duration_ms)
