Configures `wasi:clocks/wall-clock` to use the `clock` specified. By default the host's wall clock is used.
(&mut self, clock: impl HostWallClock + 'static)
| 376 | /// |
| 377 | /// By default the host's wall clock is used. |
| 378 | pub fn wall_clock(&mut self, clock: impl HostWallClock + 'static) -> &mut Self { |
| 379 | self.clocks.wall_clock = Box::new(clock); |
| 380 | self |
| 381 | } |
| 382 | |
| 383 | /// Configures `wasi:clocks/monotonic-clock` to use the `clock` specified. |
| 384 | /// |