/// Create a physical type with time units.
Create a physical type with time units.
Create a physical type with time units .
fn make_time_type(decl: TypeDeclRef, base: IntTy) -> PhysicalTy {
    PhysicalTy::new(
        decl,
        base,
        vec![
            named_unit("fs", 1, None),
            named_unit("ps", 1_000, Some((1000, 0))),
            named_unit("ns", 1_000_000, Some((1000, 1))),
            named_unit("us", 1_000_000_000, Some((1000, 2))),
            named_unit("ms", 1_000_000_000_000, Some((1000, 3))),
            named_unit("sec", 1_000_000_000_000_000, Some((1000, 4))),
            named_unit("min", 60_000_000_000_000_000, Some((60, 5))),
            named_unit("hr", 3600_000_000_000_000_000, Some((60, 6))),
        ],
        0,
    )
}
fn make_time_type ( decl : TypeDeclRef , base : IntTy ) -> PhysicalTy { PhysicalTy :: new ( decl , base , vec ! [ named_unit ( " " 1 None ) named_unit ( " " 1_000 Some ( ( 1000 0 ) ) ) named_unit ( " " 1_000_000 Some ( ( 1000 1 ) ) ) named_unit ( " " 1_000_000_000 Some ( ( 1000 2 ) ) ) named_unit ( " " 1_000_000_000_000 Some ( ( 1000 3 ) ) ) named_unit ( " " 1_000_000_000_000_000 Some ( ( 1000 4 ) ) ) named_unit ( " " 60_000_000_000_000_000 Some ( ( 60 5 ) ) ) named_unit ( " " 3600_000_000_000_000_000 Some ( ( 60 6 ) ) ) ] , 0 , ) }
Create a physical type with time units.
Create a physical type with time units .
decl
TypeDeclRef
base
IntTy