type Instant
A reading of the monotonic clock, for measuring intervals (the type is declared in the prelude).
Example:
use std.time { Instant }
fn main() io, time {
let start = Instant.now()
let spent = start.elapsed()
print("{spent.isNegative()}")
}Вывод
false
pub(api) type Instant = std.core.InstantС версии. 1.0.0-beta
Определено в: std/time/time.oxl:62