Searched refs:SystemTime (Results 1 – 14 of 14) sorted by relevance
| /wasmtime-44.0.1/crates/cache/src/worker/tests/ |
| H A D | system_time_stub.rs | 2 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 D | p2_api_time.rs | 1 use std::time::{Duration, Instant, SystemTime}; 9 SystemTime::UNIX_EPOCH + Duration::new(1431648000, 100), in main() 10 SystemTime::now() in main()
|
| H A D | p2_cli_default_clocks.rs | 6 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 D | clocks.rs | 1 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 D | filesystem.rs | 235 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 D | clocks.rs | 2 use cap_std::time::{Duration, Instant, SystemTime}; 6 Absolute(SystemTime), 11 fn now(&self, precision: Duration) -> SystemTime; in now() argument
|
| H A D | file.rs | 209 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 D | clocks.rs | 2 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 D | clocks.rs | 7 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 D | filesystem.rs | 750 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 D | worker.rs | 34 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 D | host.rs | 99 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 D | profiling.rs | 160 profile.set_reference_timestamp(std::time::SystemTime::now().into()); in new()
|
| /wasmtime-44.0.1/crates/wasi-common/src/snapshots/ |
| H A D | preview_1.rs | 103 .duration_since(std::time::SystemTime::UNIX_EPOCH) in clock_time_get()
|