method Inst.now
Monotonic clock reading (§17.3).
Example:
use std.time { Instant }
fn main() io, time {
let t0 = Instant.now()
let spent = t0.elapsed()
print("{spent.isNegative()}")
}Вывод
false
pub(api) static fn now() -> Inst timeС версии. 1.0.0-beta
Возвращает
Inst
Эффекты
time
Определено в: std/time/time.oxl:2040