Re: [PATCH v9 4/8] rust: time: Introduce Instant type
From: Fiona Behrens
Date: Tue Jan 28 2025 - 05:30:43 EST
On 25 Jan 2025, at 11:18, FUJITA Tomonori wrote:
> Introduce a type representing a specific point in time. We could use
> the Ktime type but C's ktime_t is used for both timestamp and
> timedelta. To avoid confusion, introduce a new Instant type for
> timestamp.
>
> Rename Ktime to Instant and modify their methods for timestamp.
>
> Implement the subtraction operator for Instant:
>
> Delta = Instant A - Instant B
>
> Reviewed-by: Boqun Feng <boqun.feng@xxxxxxxxx>
> Signed-off-by: FUJITA Tomonori <fujita.tomonori@xxxxxxxxx>
Reviewed-by: Fiona Behrens <me@xxxxxxxxxx>