Time.Duration.to_ms_nat: def of bend-kit-time@0.3.0.0 Import: import bend-kit-time@0.3.0.0/time.bend as Time Lines 60-64 of bend-kit-time@0.3.0.0/time.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-time@0.3.0.0/time.bend&start_line=60&end_line=64 import Base import bend-kit-int@0.2.0.0/int.bend as Int # Whole milliseconds, rounded down; 0 when d is negative. def Duration.to_ms_nat(d: Duration) -> Nat: match d: case Duration{s, n}: Duration.to_nat.of(Int.I64.to_nat(s), 1000n, (n / 1000000 : U32)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.div https://jend.leeeet.dev/definition.txt?path=bend-kit-int@0.2.0.0/int.bend&name=I64.to_nat https://jend.leeeet.dev/definition.txt?path=bend-kit-time@0.3.0.0/time.bend&name=Duration https://jend.leeeet.dev/definition.txt?path=bend-kit-time@0.3.0.0/time.bend&name=Duration.to_nat.of