OxL Справочник OxL
РусскийEnglish

type Instant

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

Example:

oxl✓ проверяется в CI
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

См. также