def METHOD_NAME(prev: str, nsec: int) -> str:
    """
    Truncate to milliseconds for compactness, our tests should not care.
    We do NOT round up (too much code), so 999999000 renders as 999.
    """
    return f"{prev}.{nsec // MSEC_TO_NSEC:03}".rstrip("0").rstrip(".")