OxL Reference

type Instant

A reading of the monotonic clock, for measuring intervals (the type is declared in the prelude).

Example:

oxl✓ checked in CI
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.Instant

Since. 1.0.0-beta

Defined in: std/time/time.oxl:62

See also