]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust/time: Add Delta::from_nanos()
authorLyude Paul <lyude@redhat.com>
Fri, 14 Nov 2025 18:42:06 +0000 (13:42 -0500)
committerAndreas Hindborg <a.hindborg@kernel.org>
Mon, 23 Mar 2026 07:29:48 +0000 (08:29 +0100)
commitc51866f65b8ac37b8883a2e80ada13c8cd4d2f7b
tree91d8e7077c85bd26977900f7b70967cee3e82054
parentc369299895a591d96745d6492d4888259b004a9e
rust/time: Add Delta::from_nanos()

Since rvkms is going to need to create its own Delta instances, and we
already have functions for creating Delta with every other unit of time.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://msgid.link/20251114184207.459335-1-lyude@redhat.com
Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org>
rust/kernel/time.rs