/** @module Interface wasi:clocks/monotonic-clock@0.2.3 **/ /** * Read the current value of the clock. * * The clock is monotonic, therefore calling this function repeatedly will * produce a sequence of non-decreasing values. */ export function now(): Instant; /** * Query the resolution of the clock. Returns the duration of time * corresponding to a clock tick. */ export function resolution(): Duration; /** * Create a `pollable` which will resolve once the specified instant * has occurred. */ export function subscribeInstant(when: Instant): Pollable; /** * Create a `pollable` that will resolve after the specified duration has * elapsed from the time this function is invoked. */ export function subscribeDuration(when: Duration): Pollable; export type Pollable = import('./wasi-io-poll.js').Pollable; /** * An instant in time, in nanoseconds. An instant is relative to an * unspecified initial value, and can only be compared to instances from * the same monotonic-clock. */ export type Instant = bigint; /** * A duration of time, in nanoseconds. */ export type Duration = bigint;