/// Represents a monotonic timestamp in nanoseconds.
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Default)]pubstructTimestamp(u128);implTimestamp{/// Creates a new timestamp from a nanosecond value.
pubconstfnnew(nanos:u128)->Self{Self(nanos)}/// Returns the stored nanosecond value.
pubconstfnas_nanos(self)->u128{self.0}}