Re: [PATCH net-next v2 2/6] rust: time: Introduce Delta type

From: FUJITA Tomonori
Date: Sat Oct 12 2024 - 20:49:16 EST


On Sat, 12 Oct 2024 19:56:52 +0100
Gary Guo <gary@xxxxxxxxxxx> wrote:

>> I'll use u64 for all in v3; The range is to u64::MAX in nanoseconds
>> for all the from_* functions.
>
> If you do, I'd recommend to call it `Duration` rather than `Delta`.
> `Delta` sounds to me that it can represent a negative delta, where
> `Duration` makes sense to be non-negative.
>
> And it also makes sense that `kernel::time::Duration` is the replacement
> of `core::time::Duration`.

Ok, `Duration` also works for me. I had kinda impression that it's
better not to use `Duration`.