Re: [PATCH v1] rust: time: Avoid 64-bit integer division
From: FUJITA Tomonori
Date: Thu May 01 2025 - 08:02:53 EST
On Thu, 1 May 2025 11:24:24 +0200
Miguel Ojeda <miguel.ojeda.sandonis@xxxxxxxxx> wrote:
> On Thu, May 1, 2025 at 4:45 AM FUJITA Tomonori
> <fujita.tomonori@xxxxxxxxx> wrote:
>>
>> Oops, they should call ktime_to_us() and ktime_to_ms() respectively.
>>
>> I'll send v2 later.
>
> What about adding a couple examples to their docs so that they are
> also tested and this would be caught?
>
> (In another patch, possibly in another series or not. We could also
> open a good first issue)
I'll submit another patch to add some doctests once this is merged.