Messages in this thread | | | Date | Fri, 14 Jul 2023 10:58:21 -0300 | Subject | Re: [PATCH v2] rust: time: New module for timekeeping functions | From | Martin Rodriguez Reboredo <> |
| |
On 7/14/23 04:55, Asahi Lina wrote: > This module is intended to contain functions related to kernel > timekeeping and time. > > Initially, this implements an abstraction for a time Instant (analogous > to the Rust std::time::Instant) that represents an opaque instant in > time. Unlike the std Instant, this is a generic type that is bound to a > specific clock source, so that only Instants from the same clock source > can be subtracted/compared. > > Then we implement the relevant clocks available to the kernel: > KernelTime (CLOCK_MONOTONIC), BootTime (CLOCK_BOOTTIME), > RealTime (CLOCK_REALTIME), and TaiTime. > > Co-developed-by: Heghedus Razvan <heghedus.razvan@protonmail.com> > Signed-off-by: Asahi Lina <lina@asahilina.net> > --- > [...]
Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
| |