// Take time reading and generate a 12 byte timestamp
Take time reading and generate a 12 byte timestamp
Take time reading and generate a 12 byte timestamp
pub fn stamp(&self) -> [u8; 12] {
        const TAI64_BASE: u64 = (1u64 << 62) + 37;
        let mut ext_stamp = [0u8; 12];
        let stamp = Instant::now().duration_since(self.instant_at_start) + self.duration_at_start;
        ext_stamp[0..8].copy_from_slice(&(stamp.as_secs() + TAI64_BASE).to_be_bytes());
        ext_stamp[8..12].copy_from_slice(&stamp.subsec_nanos().to_be_bytes());
        ext_stamp
    }
pub fn stamp ( & self ) -> [ u8 ; 12 ] { const TAI64_BASE : u64 = ( 1u64 << 62 ) + 37 ; let mut ext_stamp = [ 0u8 ; 12 ] ; let stamp = Instant :: now ( ) . duration_since ( self . instant_at_start ) + self . duration_at_start ; ext_stamp [ 0 .. 8 ] . copy_from_slice ( & ( stamp . as_secs ( ) + TAI64_BASE ) . to_be_bytes ( ) ) ; ext_stamp [ 8 .. 12 ] . copy_from_slice ( & stamp . subsec_nanos ( ) . to_be_bytes ( ) ) ; ext_stamp }
Take time reading and generate a 12 byte timestamp
Take time reading and generate a 12 byte timestamp
&self