| /wasmtime-44.0.1/crates/wasi-common/src/ |
| H A D | clocks.rs | 25 pub fn new(clock: impl 'static + WasiMonotonicClock) -> Self { in new() 27 creation_time: clock.now(clock.resolution()), in new() 28 abs_clock: Box::new(clock), in new() 46 pub fn with_system(mut self, clock: impl 'static + WasiSystemClock) -> Self { in with_system() 47 self.system = Some(Box::new(clock)); in with_system() 51 pub fn with_monotonic(mut self, clock: impl 'static + WasiMonotonicClock) -> Self { in with_monotonic() 52 self.monotonic = Some(WasiMonotonicOffsetClock::new(clock)); in with_monotonic()
|
| H A D | sched.rs | 45 clock: &'a dyn WasiMonotonicClock, in subscribe_monotonic_clock() 52 clock, in subscribe_monotonic_clock()
|
| /wasmtime-44.0.1/crates/debugger/wit/deps/ |
| H A D | clocks.wit | 9 /// A monotonic clock is a clock which has an unspecified initial value, and 12 interface monotonic-clock { 18 /// the same monotonic-clock. 26 /// Read the current value of the clock. 34 /// corresponding to a clock tick. 56 /// A wall clock is a clock which measures the date and time according to 64 interface wall-clock { 88 /// Query the resolution of the clock. 98 use wall-clock.{datetime}; 152 import monotonic-clock; [all …]
|
| H A D | cli.wit | 170 import wasi:clocks/monotonic-clock@0.2.6; 172 import wasi:clocks/wall-clock@0.2.6; 229 import wasi:clocks/monotonic-clock@0.2.6; 231 import wasi:clocks/wall-clock@0.2.6;
|
| /wasmtime-44.0.1/crates/wasi/src/p2/wit/deps/ |
| H A D | clocks.wit | 9 /// A monotonic clock is a clock which has an unspecified initial value, and 12 interface monotonic-clock { 18 /// the same monotonic-clock. 26 /// Read the current value of the clock. 34 /// corresponding to a clock tick. 56 /// A wall clock is a clock which measures the date and time according to 64 interface wall-clock { 88 /// Query the resolution of the clock. 98 use wall-clock.{datetime}; 152 import monotonic-clock; [all …]
|
| H A D | cli.wit | 170 import wasi:clocks/monotonic-clock@0.2.6; 172 import wasi:clocks/wall-clock@0.2.6; 229 import wasi:clocks/monotonic-clock@0.2.6; 231 import wasi:clocks/wall-clock@0.2.6;
|
| /wasmtime-44.0.1/crates/wasi-http/wit/deps/ |
| H A D | clocks.wit | 9 /// A monotonic clock is a clock which has an unspecified initial value, and 12 interface monotonic-clock { 18 /// the same monotonic-clock. 26 /// Read the current value of the clock. 34 /// corresponding to a clock tick. 56 /// A wall clock is a clock which measures the date and time according to 64 interface wall-clock { 88 /// Query the resolution of the clock. 98 use wall-clock.{datetime}; 152 import monotonic-clock; [all …]
|
| H A D | cli.wit | 170 import wasi:clocks/monotonic-clock@0.2.6; 172 import wasi:clocks/wall-clock@0.2.6; 229 import wasi:clocks/monotonic-clock@0.2.6; 231 import wasi:clocks/wall-clock@0.2.6;
|
| /wasmtime-44.0.1/crates/wasi/src/ |
| H A D | clocks.rs | 87 clock: cap_std::time::SystemClock, field 99 clock: cap_std::time::SystemClock::new(ambient_authority), in new() 106 self.clock.resolution() in resolution() 111 self.clock in now() 120 clock: cap_std::time::MonotonicClock, field 135 let clock = cap_std::time::MonotonicClock::new(ambient_authority); in new() localVariable 136 let initial = clock.now(); in new() 137 Self { clock, initial } in new() 143 self.clock.resolution().as_nanos().try_into().unwrap() in resolution() 149 self.clock in now()
|
| H A D | ctx.rs | 369 pub fn wall_clock(&mut self, clock: impl HostWallClock + 'static) -> &mut Self { in wall_clock() 370 self.clocks.wall_clock = Box::new(clock); in wall_clock() 377 pub fn monotonic_clock(&mut self, clock: impl HostMonotonicClock + 'static) -> &mut Self { in monotonic_clock() 378 self.clocks.monotonic_clock = Box::new(clock); in monotonic_clock()
|
| /wasmtime-44.0.1/crates/wasi/src/p3/wit/deps/ |
| H A D | clocks.wit | 17 /// A monotonic clock is a clock which has an unspecified initial value, and 18 /// successive reads of the clock will produce non-decreasing values. 20 interface monotonic-clock { 25 /// the same monotonic-clock. 29 /// Read the current value of the clock. 42 /// corresponding to a clock tick. 66 interface system-clock { 91 /// Read the current value of the clock. 109 use system-clock.{instant}; 156 import monotonic-clock; [all …]
|
| H A D | cli.wit | 205 import wasi:clocks/monotonic-clock@0.3.0-rc-2026-03-15; 206 import wasi:clocks/system-clock@0.3.0-rc-2026-03-15; 242 import wasi:clocks/monotonic-clock@0.3.0-rc-2026-03-15; 243 import wasi:clocks/system-clock@0.3.0-rc-2026-03-15;
|
| /wasmtime-44.0.1/crates/wasi-http/src/p3/wit/deps/ |
| H A D | clocks.wit | 17 /// A monotonic clock is a clock which has an unspecified initial value, and 18 /// successive reads of the clock will produce non-decreasing values. 20 interface monotonic-clock { 25 /// the same monotonic-clock. 29 /// Read the current value of the clock. 42 /// corresponding to a clock tick. 66 interface system-clock { 91 /// Read the current value of the clock. 109 use system-clock.{instant}; 156 import monotonic-clock; [all …]
|
| H A D | cli.wit | 205 import wasi:clocks/monotonic-clock@0.3.0-rc-2026-03-15; 206 import wasi:clocks/system-clock@0.3.0-rc-2026-03-15; 242 import wasi:clocks/monotonic-clock@0.3.0-rc-2026-03-15; 243 import wasi:clocks/system-clock@0.3.0-rc-2026-03-15;
|
| /wasmtime-44.0.1/crates/component-macro/tests/codegen/ |
| H A D | simple-wasi.wit | 15 interface wall-clock { 16 record wall-clock { 22 import wall-clock;
|
| /wasmtime-44.0.1/crates/test-programs/src/bin/ |
| H A D | p1_poll_oneoff_stdio.rs | 24 let clock = wasip1::SubscriptionClock { in test_stdin_read() localVariable 39 u: wasip1::SubscriptionUU { clock }, in test_stdin_read() 95 let clock = wasip1::Subscription { in test_stdout_stderr_write() localVariable 100 clock: wasip1::SubscriptionClock { in test_stdout_stderr_write() 115 subs.push(clock); in test_stdout_stderr_write()
|
| H A D | p1_poll_oneoff_files.rs | 61 let clock = wasip1::SubscriptionClock { in test_timeout() localVariable 71 u: wasip1::SubscriptionUU { clock }, in test_timeout() 99 let clock = wasip1::SubscriptionClock { in test_sleep() localVariable 109 u: wasip1::SubscriptionUU { clock }, in test_sleep()
|
| /wasmtime-44.0.1/examples/min-platform/embedding/src/ |
| H A D | wasi.rs | 100 let clock = Clock::new(); in run() localVariable 103 block_on(clock.clone(), async move { in run() 106 clock, in run() 168 clock: Clock, field 246 clock: self.clone(), in timer() 259 clock: Clock, field 265 let now = self.clock.get(); in poll() 450 clock.set(sleep_until); in block_on() 452 clock.set(clock.get() + 1); in block_on() 476 Ok(self.clock.get()) in now() [all …]
|
| /wasmtime-44.0.1/crates/wasi/witx/p0/ |
| H A D | typenames.witx | 22 ;;; The store-wide monotonic clock, which is defined as a clock measuring 24 ;;; clock jumps. The epoch of this clock is undefined. The absolute time 25 ;;; value of this clock therefore has no meaning. 27 ;;; The CPU-time clock associated with the current process. 29 ;;; The CPU-time clock associated with the current thread. 485 ;;; The time value of clock `subscription_clock::id` has 487 $clock 540 ;;; current time value of clock `subscription_clock::id`. 548 ;;; The user-defined unique identifier of the clock. 550 ;;; The clock against which to compare the timestamp. [all …]
|
| /wasmtime-44.0.1/crates/wasi-common/witx/preview0/ |
| H A D | typenames.witx | 22 ;;; The store-wide monotonic clock, which is defined as a clock measuring 24 ;;; clock jumps. The epoch of this clock is undefined. The absolute time 25 ;;; value of this clock therefore has no meaning. 27 ;;; The CPU-time clock associated with the current process. 29 ;;; The CPU-time clock associated with the current thread. 485 ;;; The time value of clock `subscription_clock::id` has 487 $clock 540 ;;; current time value of clock `subscription_clock::id`. 548 ;;; The user-defined unique identifier of the clock. 550 ;;; The clock against which to compare the timestamp. [all …]
|
| /wasmtime-44.0.1/crates/wiggle/tests/ |
| H A D | typenames.witx | 19 ;;; The clock measuring real time. Time value zero corresponds with 22 ;;; The store-wide monotonic clock, which is defined as a clock measuring 24 ;;; clock jumps. The epoch of this clock is undefined. The absolute time 25 ;;; value of this clock therefore has no meaning. 27 ;;; The CPU-time clock associated with the current process. 29 ;;; The CPU-time clock associated with the current thread. 487 ;;; The time value of clock `subscription_clock::id` has 489 $clock 542 ;;; current time value of clock `subscription_clock::id`. 550 ;;; The clock against which to compare the timestamp. [all …]
|
| /wasmtime-44.0.1/crates/wasi/witx/p1/ |
| H A D | typenames.witx | 19 ;;; The clock measuring real time. Time value zero corresponds with 22 ;;; The store-wide monotonic clock, which is defined as a clock measuring 24 ;;; clock jumps. The epoch of this clock is undefined. The absolute time 25 ;;; value of this clock therefore has no meaning. 27 ;;; The CPU-time clock associated with the current process. 29 ;;; The CPU-time clock associated with the current thread. 489 ;;; The time value of clock `subscription_clock::id` has 491 $clock 544 ;;; current time value of clock `subscription_clock::id`. 552 ;;; The clock against which to compare the timestamp. [all …]
|
| /wasmtime-44.0.1/crates/wasi-common/witx/preview1/ |
| H A D | typenames.witx | 19 ;;; The clock measuring real time. Time value zero corresponds with 22 ;;; The store-wide monotonic clock, which is defined as a clock measuring 24 ;;; clock jumps. The epoch of this clock is undefined. The absolute time 25 ;;; value of this clock therefore has no meaning. 27 ;;; The CPU-time clock associated with the current process. 29 ;;; The CPU-time clock associated with the current thread. 489 ;;; The time value of clock `subscription_clock::id` has 491 $clock 544 ;;; current time value of clock `subscription_clock::id`. 552 ;;; The clock against which to compare the timestamp. [all …]
|
| /wasmtime-44.0.1/crates/wasi-common/src/sched/ |
| H A D | subscription.rs | 35 pub clock: &'a dyn WasiMonotonicClock, field 42 self.clock.now(self.precision) in now()
|
| /wasmtime-44.0.1/docs/ |
| H A D | cli-cache.md | 95 Please also refer to [`allowed-clock-drift-for-files-from-future`]. 110 Please also refer to the [`allowed-clock-drift-for-files-from-future`] section. 114 Setting `allowed-clock-drift-for-files-from-future` 125 However, because of clock drifts and different timezones, 141 [`allowed-clock-drift-for-files-from-future`]: #setting-allowed-clock-drift-for-files-from-future 259 in [`allowed-clock-drift-for-files-from-future`].
|