However, PR #78 introduced new time types to be used in kernel and by users. To make things coherent we should make any notion of time used in the kernel match up with those APIs. This requires a number of things:
[ ] replace internal usage of Nanoseconds with type exposed by twizzler-abi
[ ] make TimeSpan feature parity with Duration to be used as a drop in replacement
[ ] type safe conversion between time types (Nanoseconds) and Ticks
In the early days of development the type
Nanoseconds
was used to represent the semantic time unit.https://github.com/twizzler-operating-system/twizzler/blob/66b8f2729afcbba0b4ab9b1e6fff2c902e42964b/src/kernel/src/clock.rs#L16-L20
However, PR #78 introduced new time types to be used in kernel and by users. To make things coherent we should make any notion of time used in the kernel match up with those APIs. This requires a number of things:
Nanoseconds
with type exposed bytwizzler-abi
TimeSpan
feature parity withDuration
to be used as a drop in replacementNanoseconds
) andTicks