op Inst.-
The duration between two readings of the monotonic clock.
Example:
use std.time { Instant }
fn main() io, time {
let a = Instant.now()
let b = Instant.now()
print("{(b - a).isNegative()}")
}Output
false
pub(api) static op -(a: Inst, b: Inst) -> DurSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
a | Inst |
b | Inst |
Returns
Dur
Effects
none declared (pure unless the body says otherwise)
Defined in: std/time/time.oxl:2072