Re: [PATCH net-next v3 2/8] rust: time: Introduce Delta type

From: Miguel Ojeda
Date: Fri Oct 18 2024 - 10:32:11 EST


On Fri, Oct 18, 2024 at 3:50 PM Andrew Lunn <andrew@xxxxxxx> wrote:
>
> Wasn't there a comment that the code should always round up? Delaying
> for 0 uS is probably not what the user wants.

This is not delaying, though, so I don't see why a method with this
name should return a rounded up value.

Moreover, `ktime_to_us` doesn't round up. The standard library one
doesn't, either.

Cheers,
Miguel