pub type TimeSplitMilliNanoNorm = TimeSplit<(), (), (), (), (), (), u16, u16, u16>;
Available on crate feature
time
only.Expand description
A time split from milliseconds to nanoseconds, normalized (48b size & payload).
Aliased Type§
struct TimeSplitMilliNanoNorm {
pub y: (),
pub mo: (),
pub d: (),
pub h: (),
pub m: (),
pub s: (),
pub ms: u16,
pub us: u16,
pub ns: u16,
}
Fields§
§y: ()
Years.
mo: ()
Months.
d: ()
Days.
h: ()
Hours.
m: ()
Minutes.
s: ()
Seconds.
ms: u16
Milliseconds.
us: u16
Microseconds.
ns: u16
Nanoseconds.
Implementations§
Source§impl TimeSplitMilliNanoNorm
impl TimeSplitMilliNanoNorm
Sourcepub const fn from_duration(duration: Duration) -> Self
pub const fn from_duration(duration: Duration) -> Self
Converts a Duration
’s sub-second component into a compact time split representation.
Extracts and segments the nanosecond portion of a Duration
into milliseconds, microseconds, and nanoseconds.