Home
last modified time | relevance | path

Searched refs:duration_since (Results 1 – 19 of 19) sorted by relevance

/external/crosvm/sys_util/src/
Dclock.rs24 pub fn duration_since(&self, earlier: &Self) -> Duration { in duration_since() method
25 self.0.duration_since(earlier.0) in duration_since()
74 pub fn duration_since(&self, earlier: &Self) -> Duration { in duration_since() method
81 self.now().duration_since(self) in elapsed()
/external/rust/crates/instant/src/
Dwasm.rs22 pub fn duration_since(&self, earlier: Instant) -> Duration { in duration_since() method
32 Self::now().duration_since(*self) in elapsed()
82 self.duration_since(rhs) in sub()
/external/rust/crates/tokio/src/time/
Dinstant.rs75 pub fn duration_since(&self, earlier: Instant) -> Duration { in duration_since() method
76 self.std.duration_since(earlier.std) in duration_since()
/external/rust/crates/criterion/src/stats/
Drand_util.rs9 SystemTime::now().duration_since(UNIX_EPOCH)
/external/rust/crates/quiche/src/
Dminmax.rs93 let delta_time = time.duration_since(self.estimate[2].time); in running_min()
114 let delta_time = time.duration_since(self.estimate[2].time); in _running_max()
135 let delta_time = time.duration_since(self.estimate[0].time); in subwin_update()
146 if time.duration_since(self.estimate[0].time) > win { in subwin_update()
Dlib.rs3266 return Some(timeout.duration_since(now)); in timeout()
/external/rust/crates/rustversion/src/
Dtime.rs25 let since_epoch = now.duration_since(UNIX_EPOCH).ok()?; in try_today()
/external/rust/crates/chrono/src/
Dsys.rs45 SystemTime::now().duration_since(UNIX_EPOCH).expect("system time before Unix epoch"); in now()
Ddatetime.rs755 let (sec, nsec) = match t.duration_since(UNIX_EPOCH) { in from()
/external/rust/crates/chrono/src/offset/
Dutc.rs49 SystemTime::now().duration_since(UNIX_EPOCH).expect("system time before Unix epoch"); in now()
/external/adhd/sound_card_init/dsm/src/
Dutils.rs53 match SystemTime::now().duration_since(SystemTime::UNIX_EPOCH) { in now_to_file()
Dlib.rs304 .duration_since(UNIX_EPOCH) in is_speaker_over_heated()
/external/rust/crates/parking_lot_core/src/thread_parker/
Dwasm_atomic.rs32 Some(other.duration_since(now))
/external/crosvm/devices/src/
Dpl030.rs56 .duration_since(UNIX_EPOCH) in get_epoch_time()
Dpit.rs668 .duration_since(&self.creation_time) in read_speaker()
846 let dur = self.clock.lock().now().duration_since(t); in get_ticks_passed()
/external/rust/crates/nix/test/
Dtest_stat.rs209 attr.accessed().unwrap().duration_since(UNIX_EPOCH).unwrap()); in assert_times_eq()
212 attr.modified().unwrap().duration_since(UNIX_EPOCH).unwrap()); in assert_times_eq()
/external/rust/crates/quiche/src/recovery/
Ddelivery_rate.rs87 .duration_since(pkt.delivered_time); in on_packet_acked()
Dmod.rs846 let d = v.duration_since(now); in fmt()
/external/rust/crates/serde/src/ser/
Dimpls.rs618 .duration_since(UNIX_EPOCH) in serialize()