1- package wasi : clocks @ 0.3.0;
1+ package wasi : clocks @ 0.3.0-rc-2025-08-15 ;
22/// WASI Monotonic Clock is a clock API intended to let users measure elapsed
33/// time.
44///
@@ -7,39 +7,39 @@ package wasi:clocks@0.3.0;
77///
88/// A monotonic clock is a clock which has an unspecified initial value, and
99/// successive reads of the clock will produce non-decreasing values.
10- @since (version = 0.3.0 )
10+ @since (version = 0.3.0-rc-2025-08-15 )
1111interface monotonic-clock {
1212 /// An instant in time, in nanoseconds. An instant is relative to an
1313 /// unspecified initial value, and can only be compared to instances from
1414 /// the same monotonic-clock.
15- @since (version = 0.3.0 )
15+ @since (version = 0.3.0-rc-2025-08-15 )
1616 type instant = u64 ;
1717
1818 /// A duration of time, in nanoseconds.
19- @since (version = 0.3.0 )
19+ @since (version = 0.3.0-rc-2025-08-15 )
2020 type duration = u64 ;
2121
2222 /// Read the current value of the clock.
2323 ///
2424 /// The clock is monotonic, therefore calling this function repeatedly will
2525 /// produce a sequence of non-decreasing values.
26- @since (version = 0.3.0 )
26+ @since (version = 0.3.0-rc-2025-08-15 )
2727 now : func () -> instant ;
2828
2929 /// Query the resolution of the clock. Returns the duration of time
3030 /// corresponding to a clock tick.
31- @since (version = 0.3.0 )
32- resolution : func () -> duration ;
31+ @since (version = 0.3.0-rc-2025-08-15 )
32+ get- resolution: func () -> duration ;
3333
3434 /// Wait until the specified instant has occurred.
35- @since (version = 0.3.0 )
36- wait-until : func (
35+ @since (version = 0.3.0-rc-2025-08-15 )
36+ wait-until : async func (
3737 when : instant ,
3838 );
3939
4040 /// Wait for the specified duration has elapsed.
41- @since (version = 0.3.0 )
42- wait-for : func (
41+ @since (version = 0.3.0-rc-2025-08-15 )
42+ wait-for : async func (
4343 how-long : duration ,
4444 );
4545}
0 commit comments