Home
last modified time | relevance | path

Searched defs:Instant (Results 1 – 25 of 45) sorted by relevance

12

/external/rust/crates/tokio/src/time/
Dinstant.rs34 pub struct Instant { struct
35 std: std::time::Instant, argument
38 impl Instant { impl
53 pub fn from_std(std: std::time::Instant) -> Instant { in from_std()
66 pub fn into_std(self) -> std::time::Instant { in into_std()
149 pub fn checked_add(&self, duration: Duration) -> Option<Instant> { in checked_add()
156 pub fn checked_sub(&self, duration: Duration) -> Option<Instant> { in checked_sub()
161 impl From<std::time::Instant> for Instant { implementation
162 fn from(time: std::time::Instant) -> Instant { in from()
167 impl From<Instant> for std::time::Instant { implementation
[all …]
Dinterval.rs106 pub fn interval_at(start: Instant, period: Duration) -> Interval { in interval_at()
305 fn next_timeout(&self, timeout: Instant, now: Instant, period: Duration) -> Instant { in next_timeout()
393 pub async fn tick(&mut self) -> Instant { in tick()
409 pub fn poll_tick(&mut self, cx: &mut Context<'_>) -> Poll<Instant> { in poll_tick()
Dtimeout.rs100 pub fn timeout_at<T>(deadline: Instant, future: T) -> Timeout<T> in timeout_at()
/external/rust/crates/instant/src/
Dwasm.rs6 pub struct Instant(Duration); struct
8 impl Ord for Instant { implementation
14 impl Eq for Instant {} implementation
16 impl Instant { implementation
40 pub fn checked_add(&self, duration: Duration) -> Option<Instant> { in checked_add()
48 pub fn checked_sub(&self, duration: Duration) -> Option<Instant> { in checked_sub()
71 impl Add<Duration> for Instant { implementation
80 impl AddAssign<Duration> for Instant { implementation
87 impl Sub<Duration> for Instant { implementation
96 impl Sub<Instant> for Instant { implementation
[all …]
Dnative.rs1 pub type Instant = std::time::Instant; typedef
/external/rust/crates/tokio/src/time/driver/
Dsleep.rs223 deadline: Instant, in new_timeout()
282 pub fn deadline(&self) -> Instant { in deadline()
322 pub fn reset(self: Pin<&mut Self>, deadline: Instant) { in reset()
326 fn reset_inner(self: Pin<&mut Self>, deadline: Instant) { in reset_inner()
/external/rust/crates/quiche/src/recovery/
Dmod.rs216 handshake_status: HandshakeStatus, now: Instant, trace_id: &str, in on_packet_sent()
268 fn on_packet_sent_cc(&mut self, sent_bytes: usize, now: Instant) { in on_packet_sent_cc()
278 pub fn get_packet_send_time(&self) -> Option<Instant> { in get_packet_send_time()
283 &mut self, epoch: packet::Epoch, now: Instant, packet_size: usize, in schedule_next_packet()
313 epoch: packet::Epoch, handshake_status: HandshakeStatus, now: Instant, in on_ack_received()
423 &mut self, handshake_status: HandshakeStatus, now: Instant, in on_loss_detection_timeout()
487 now: Instant, in on_pkt_num_space_discarded()
510 pub fn loss_detection_timer(&self) -> Option<Instant> { in loss_detection_timer()
558 &mut self, latest_rtt: Duration, ack_delay: Duration, now: Instant, in update_rtt()
595 fn loss_time_and_space(&self) -> (Option<Instant>, packet::Epoch) { in loss_time_and_space()
[all …]
Dreno.rs51 pub fn on_packet_sent(r: &mut Recovery, sent_bytes: usize, _now: Instant) { in on_packet_sent()
56 r: &mut Recovery, packet: &Acked, epoch: packet::Epoch, now: Instant, in on_packet_acked()
119 r: &mut Recovery, time_sent: Instant, epoch: packet::Epoch, now: Instant, in congestion_event()
Ddelivery_rate.rs53 pub fn on_packet_sent(&mut self, pkt: &mut Sent, now: Instant) { in on_packet_sent()
71 pub fn on_packet_acked(&mut self, pkt: &Sent, now: Instant) { in on_packet_acked()
Dcubic.rs164 fn on_packet_sent(r: &mut Recovery, sent_bytes: usize, now: Instant) { in on_packet_sent()
190 r: &mut Recovery, packet: &Acked, epoch: packet::Epoch, now: Instant, in on_packet_acked()
334 r: &mut Recovery, time_sent: Instant, epoch: packet::Epoch, now: Instant, in congestion_event()
Dhystart.rs91 pub fn lss_start_time(&self) -> Option<Instant> { in lss_start_time()
122 now: Instant, max_datagram_size: usize, in try_enter_lss()
/external/rust/crates/crossbeam-channel/src/flavors/
Dtick.rs38 pub(crate) fn try_recv(&self) -> Result<Instant, TryRecvError> { in try_recv()
59 pub(crate) fn recv(&self, deadline: Option<Instant>) -> Result<Instant, RecvTimeoutError> { in recv()
88 pub(crate) unsafe fn read(&self, token: &mut Token) -> Result<Instant, ()> { in read()
139 fn deadline(&self) -> Option<Instant> { in deadline()
Dat.rs43 pub(crate) fn try_recv(&self) -> Result<Instant, TryRecvError> { in try_recv()
67 pub(crate) fn recv(&self, deadline: Option<Instant>) -> Result<Instant, RecvTimeoutError> { in recv()
106 pub(crate) unsafe fn read(&self, token: &mut Token) -> Result<Instant, ()> { in read()
169 fn deadline(&self) -> Option<Instant> { in deadline()
Dzero.rs222 deadline: Option<Instant>, in send()
393 fn deadline(&self) -> Option<Instant> { in deadline()
443 fn deadline(&self) -> Option<Instant> { in deadline()
/external/rust/crates/quiche/src/
Dminmax.rs79 pub fn reset(&mut self, time: Instant, meas: T) -> T { in reset()
90 pub fn running_min(&mut self, win: Duration, time: Instant, meas: T) -> T { in running_min()
111 pub fn _running_max(&mut self, win: Duration, time: Instant, meas: T) -> T { in _running_max()
132 fn subwin_update(&mut self, win: Duration, time: Instant, meas: T) -> T { in subwin_update()
/external/rust/crates/parking_lot/src/
Dutil.rs36 pub fn to_deadline(timeout: Duration) -> Option<Instant> { in to_deadline()
Draw_fair_mutex.rs54 type Instant = <RawMutex as lock_api::RawMutexTimed>::Instant; typedef
/external/rust/crates/instant/
DREADME.md1 # Instant chapter
/external/rust/crates/tokio/tests/
Dtime_interval.rs169 fn poll_next(interval: &mut task::Spawn<time::Interval>) -> Poll<Instant> { in poll_next()
/external/rust/crates/crossbeam-utils/src/sync/
Dparker.rs141 pub fn park_deadline(&self, deadline: Instant) { in park_deadline()
317 fn park(&self, deadline: Option<Instant>) { in park()
/external/rust/crates/crossbeam-channel/src/
Dchannel.rs173 pub fn after(duration: Duration) -> Receiver<Instant> { in after()
221 pub fn at(when: Instant) -> Receiver<Instant> { in at()
319 pub fn tick(duration: Duration) -> Receiver<Instant> { in tick()
1342 fn deadline(&self) -> Option<Instant> { in deadline()
1407 fn deadline(&self) -> Option<Instant> { in deadline()
Dselect.rs103 fn deadline(&self) -> Option<Instant>; in deadline()
129 fn deadline(&self) -> Option<Instant> { in deadline()
496 deadline: Instant, in select_deadline()
907 deadline: Instant, in select_deadline()
/external/crosvm/common/cros_asyncv2/src/
Dtimer.rs62 pub fn deadline(&self) -> Instant { in deadline()
156 pub async fn with_deadline<F: Future>(deadline: Instant, f: F) -> Result<F::Output, TimedOut> { in with_deadline()
/external/rust/crates/tokio-stream/src/wrappers/
Dinterval.rs31 fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Instant>> { in poll_next()
/external/tensorflow/tensorflow/core/profiler/utils/
Dtimespan.h48 bool Instant() const { return duration_ps() == 0; } in Instant() function

12