pub struct HiResTimestamp {
pub picoseconds: Picoseconds,
pub uncertainty_low: Picoseconds,
pub uncertainty_high: Picoseconds,
pub is_estimated: bool,
}Expand description
High-resolution timing result with uncertainty bounds
Fields§
§picoseconds: PicosecondsMeasured time in picoseconds
uncertainty_low: PicosecondsLower bound uncertainty (picoseconds)
uncertainty_high: PicosecondsUpper bound uncertainty (picoseconds)
is_estimated: boolWhether this is an estimated (sub-ns) or direct measurement
Implementations§
Source§impl HiResTimestamp
impl HiResTimestamp
Sourcepub fn from_nanos(ns: u64) -> Self
pub fn from_nanos(ns: u64) -> Self
Create from nanoseconds with standard uncertainty
Sourcepub fn from_picos(ps: Picoseconds, uncertainty: Picoseconds) -> Self
pub fn from_picos(ps: Picoseconds, uncertainty: Picoseconds) -> Self
Create from direct picosecond measurement
Sourcepub fn as_secs_f64(&self) -> f64
pub fn as_secs_f64(&self) -> f64
Convert to seconds as f64 for high precision display
Sourcepub fn format_with_uncertainty(&self) -> String
pub fn format_with_uncertainty(&self) -> String
Format with uncertainty bounds
Trait Implementations§
Source§impl Clone for HiResTimestamp
impl Clone for HiResTimestamp
Source§fn clone(&self) -> HiResTimestamp
fn clone(&self) -> HiResTimestamp
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HiResTimestamp
impl Debug for HiResTimestamp
Source§impl PartialEq for HiResTimestamp
impl PartialEq for HiResTimestamp
Source§impl Sub for HiResTimestamp
impl Sub for HiResTimestamp
impl Copy for HiResTimestamp
impl Eq for HiResTimestamp
impl StructuralPartialEq for HiResTimestamp
Auto Trait Implementations§
impl Freeze for HiResTimestamp
impl RefUnwindSafe for HiResTimestamp
impl Send for HiResTimestamp
impl Sync for HiResTimestamp
impl Unpin for HiResTimestamp
impl UnwindSafe for HiResTimestamp
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