Thread (64 messages) 64 messages, 6 authors, 2024-10-25

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

From: Miguel Ojeda <hidden>
Date: 2024-10-18 14:31:49
Also in: lkml, rust-for-linux

On Fri, Oct 18, 2024 at 3:50 PM Andrew Lunn [off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help