Re: [PATCH v6 1/7] rust: time: make Delta generic over its time unit
Andreas Hindborg <[email protected]>
| Newsgroups | org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <[email protected]> |
FUJITA Tomonori <[email protected]> writes: > From: FUJITA Tomonori <[email protected]> > > Delta hardcodes its value as i64 nanoseconds. A later patch adds a > jiffies span, whose natural representation is isize jiffies rather than > i64 nanoseconds, and a separate type per unit would duplicate the > arithmetic and comparison machinery. > > Make Delta generic over its time unit so the jiffies span can reuse that > machinery. The nanosecond Delta keeps its current representation and API > via the default unit parameter, so no functional change. > users. > > Reviewed-by: Gary Guo <[email protected]> > Signed-off-by: FUJITA Tomonori <[email protected]> Reviewed-by: Andreas Hindborg <[email protected]> Best regards, Andreas Hindborg