Skip to main content

us

Macro us 

Source
macro_rules! us {
    ($x:expr) => { ... };
}
Expand description

Converts whole microseconds (i128) to total attoseconds (i128).

Sugar for Dt::us_to_attos. Does not build a Dt — only multiplies the unit count by the attoseconds-per-unit constant (saturating).

§Example

use deep_time::{Dt, us};

assert_eq!(us!(1), Dt::us_to_attos(1));