Home
last modified time | relevance | path

Searched refs:SystemTime (Results 1 – 14 of 14) sorted by relevance

/wasmtime-44.0.1/crates/cache/src/worker/tests/
H A Dsystem_time_stub.rs2 use std::time::{Duration, SystemTime, SystemTimeError};
4 pub static NOW: LazyLock<SystemTime> = LazyLock::new(SystemTime::now);
7 pub struct SystemTimeStub(SystemTime);
18 pub fn duration_since(&self, earlier: SystemTime) -> Result<Duration, SystemTimeError> { in duration_since()
23 impl From<SystemTime> for SystemTimeStub {
24 fn from(time: SystemTime) -> Self { in from()
/wasmtime-44.0.1/crates/test-programs/src/bin/
H A Dp2_api_time.rs1 use std::time::{Duration, Instant, SystemTime};
9 SystemTime::UNIX_EPOCH + Duration::new(1431648000, 100), in main()
10 SystemTime::now() in main()
H A Dp2_cli_default_clocks.rs6 let c = std::time::SystemTime::now(); in main()
7 let d = std::time::SystemTime::now(); in main()
/wasmtime-44.0.1/crates/wasi/src/
H A Dclocks.rs1 use cap_std::time::{Duration, Instant, SystemClock, SystemTime};
171 impl TryFrom<SystemTime> for Datetime {
174 fn try_from(time: SystemTime) -> Result<Self, Self::Error> { in try_from()
175 let epoch = SystemTime::from_std(std::time::SystemTime::UNIX_EPOCH); in try_from()
H A Dfilesystem.rs235 fn datetime_from(t: std::time::SystemTime) -> Datetime { in datetime_from()
237 Datetime::try_from(cap_std::time::SystemTime::from_std(t)).unwrap() in datetime_from()
/wasmtime-44.0.1/crates/wasi-common/src/
H A Dclocks.rs2 use cap_std::time::{Duration, Instant, SystemTime};
6 Absolute(SystemTime),
11 fn now(&self, precision: Duration) -> SystemTime; in now() argument
H A Dfile.rs209 pub atim: Option<std::time::SystemTime>,
210 pub mtim: Option<std::time::SystemTime>,
211 pub ctim: Option<std::time::SystemTime>,
/wasmtime-44.0.1/crates/wasi-common/src/sync/
H A Dclocks.rs2 use cap_std::time::{Duration, Instant, SystemTime};
17 fn now(&self, precision: Duration) -> SystemTime { in now() argument
/wasmtime-44.0.1/crates/wasi/src/p2/host/
H A Dclocks.rs7 use cap_std::time::SystemTime;
44 impl TryFrom<SystemTime> for Datetime {
47 fn try_from(time: SystemTime) -> Result<Self, Self::Error> { in try_from()
H A Dfilesystem.rs750 fn systemtime_from(t: wall_clock::Datetime) -> Result<std::time::SystemTime, ErrorCode> { in systemtime_from() argument
751 std::time::SystemTime::UNIX_EPOCH in systemtime_from()
/wasmtime-44.0.1/crates/cache/src/
H A Dworker.rs34 use std::time::SystemTime;
36 use tests::system_time_stub::SystemTimeStub as SystemTime;
180 mtime: SystemTime,
440 let future_tolerance = SystemTime::now() in handle_on_cache_update()
879 match SystemTime::now().duration_since(mtime) { in is_fs_lock_expired()
/wasmtime-44.0.1/crates/wasi/src/p3/filesystem/
H A Dhost.rs99 fn systemtime_from(t: system_clock::Instant) -> Result<std::time::SystemTime, ErrorCode> { in systemtime_from() argument
101 std::time::SystemTime::UNIX_EPOCH in systemtime_from()
105 std::time::SystemTime::UNIX_EPOCH in systemtime_from()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dprofiling.rs160 profile.set_reference_timestamp(std::time::SystemTime::now().into()); in new()
/wasmtime-44.0.1/crates/wasi-common/src/snapshots/
H A Dpreview_1.rs103 .duration_since(std::time::SystemTime::UNIX_EPOCH) in clock_time_get()