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()}")
}Вывод
1 90
pub(api) type Duration = std.core.DurationС версии. 1.0.0-beta
Определено в: std/time/time.oxl:46