pub struct TimeStamp(/* private fields */);Expand description
Timestamp in us after creation These wrap every 2^32 microseconds
Implementations§
Source§impl TimeStamp
impl TimeStamp
pub fn from_micros(us: u32) -> Self
pub fn as_micros(self) -> u32
pub fn as_secs_f64(self) -> f64
pub fn as_duration(self) -> Duration
Trait Implementations§
Source§impl Ord for TimeStamp
impl Ord for TimeStamp
Source§impl PartialOrd for TimeStamp
impl PartialOrd for TimeStamp
impl Copy for TimeStamp
impl Eq for TimeStamp
impl StructuralPartialEq for TimeStamp
Auto Trait Implementations§
impl Freeze for TimeStamp
impl RefUnwindSafe for TimeStamp
impl Send for TimeStamp
impl Sync for TimeStamp
impl Unpin for TimeStamp
impl UnsafeUnpin for TimeStamp
impl UnwindSafe for TimeStamp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more