type Duration
An exact time interval in nanoseconds (the type is declared in the prelude; use std.time { Duration } imports it with its methods).
Example:
use std.time { Duration }
fn main() io {
let d: Duration = Duration.ofMinutes(90)
print("{d.hours()} {d.minutes()}")
}Output
1 90
pub(api) type Duration = std.core.DurationSince. 1.0.0-beta
Defined in: std/time/time.oxl:46