Expand description
WASI Monotonic Clock is a clock API intended to let users measure elapsed time.
It is intended to be portable at least between Unix-family platforms and Windows.
A monotonic clock is a clock which has an unspecified initial value, and successive reads of the clock will produce non-decreasing values.
It is intended for measuring elapsed time.
Functions§
- now
- Read the current value of the clock.
- resolution
- Query the resolution of the clock. Returns the duration of time corresponding to a clock tick.
- subscribe_
duration - Create a
pollablewhich will resolve once the given duration has elapsed, starting at the time at which this function was called. occured. - subscribe_
instant - Create a
pollablewhich will resolve once the specified instant occured.