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()}")
}Output
false
pub(api) type Instant = std.core.InstantSince. 1.0.0-beta
Defined in: std/time/time.oxl:62