[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e048a4cc-b4e9-4780-83b2-a39ede65f978@lunn.ch>
Date: Wed, 2 Oct 2024 14:18:44 +0200
From: Andrew Lunn <andrew@...n.ch>
To: FUJITA Tomonori <fujita.tomonori@...il.com>
Cc: netdev@...r.kernel.org, rust-for-linux@...r.kernel.org,
hkallweit1@...il.com, tmgross@...ch.edu, ojeda@...nel.org,
alex.gaynor@...il.com, gary@...yguo.net, bjorn3_gh@...tonmail.com,
benno.lossin@...ton.me, a.hindborg@...sung.com,
aliceryhl@...gle.com
Subject: Re: [PATCH net-next v1 1/2] rust: add delay abstraction
> > I would also document the units for the parameter. Is it picoseconds
> > or centuries?
>
> Rust's Duration is created from seconds and nanoseconds.
How well know is that? And is there a rust-for-linux wide preference
to use Duration for time? Are we going to get into a situation that
some abstractions use Duration, others seconds, some milliseconds,
etc, just like C code?
Anyway, i would still document the parameter is a Duration, since it
is different to how C fsleep() works.
Andrew
Powered by blists - more mailing lists