Home
last modified time | relevance | path

Searched refs:Instant (Results 1 – 25 of 38) sorted by relevance

12

/third_party/rust/crates/aho-corasick/aho-corasick-debug/
Dmain.rs6 use std::time::Instant;
33 let start = Instant::now(); in try_main()
37 let count_time = Instant::now().duration_since(start); in try_main()
119 let start = Instant::now(); in automaton()
121 let read_time = Instant::now().duration_since(start); in automaton()
124 let start = Instant::now(); in automaton()
136 let build_time = Instant::now().duration_since(start); in automaton()
/third_party/rust/crates/tracing/tracing-subscriber/src/fmt/time/
Dmod.rs4 use std::time::Instant;
106 epoch: Instant,
112 epoch: Instant::now(), in default()
117 impl From<Instant> for Uptime {
118 fn from(epoch: Instant) -> Self { in from()
/third_party/rust/crates/bindgen/bindgen/
Dtime.rs2 use std::time::{Duration, Instant};
9 start: Instant,
19 start: Instant::now(), in new()
32 Instant::now() - self.start in elapsed()
/third_party/rust/crates/syn/tests/repo/
Dprogress.rs2 use std::time::{Duration, Instant};
6 tick: Instant,
14 tick: Instant::now() + Duration::from_millis(2000), in new()
24 let now = Instant::now(); in read()
/third_party/rust/crates/once_cell/examples/
Dregex.rs1 use std::{str::FromStr, time::Instant};
42 let t = Instant::now(); in main()
46 let t = Instant::now(); in main()
Dbench_vs_lazy_static.rs15 let start = std::time::Instant::now(); in main()
25 let start = std::time::Instant::now(); in main()
Dbench.rs11 let start = std::time::Instant::now(); in main()
Dtest_synchronization.rs19 let start = std::time::Instant::now(); in main()
Dbench_acquire.rs15 let start = std::time::Instant::now(); in main()
/third_party/rust/crates/nix/test/sys/
Dtest_timerfd.rs5 use std::time::Instant;
12 let before = Instant::now(); in test_timerfd_oneshot()
32 let before = Instant::now(); in test_timerfd_interval()
/third_party/rust/crates/proc-macro2/benches/bench-libproc-macro/
Dlib.rs5 use std::time::Instant;
11 let start = Instant::now(); in bench()
29 let start = Instant::now(); in bench()
/third_party/rust/crates/tracing/tracing-flame/src/
Dlib.rs151 use std::time::{Duration, Instant};
161 static START: Lazy<Instant> = Lazy::new(Instant::now);
164 static LAST_EVENT: Cell<Instant> = Cell::new(*START);
473 let now = Instant::now(); in time_since_last_event()
/third_party/rust/crates/signal-hook/src/
Dflag.rs234 use std::time::{Duration, Instant};
248 let start = Instant::now(); in wait_flag()
253 if Instant::now() - start > Duration::from_secs(1) { in wait_flag()
/third_party/rust/crates/tracing/tracing-appender/benches/
Dbench.rs4 time::Instant,
52 let start = Instant::now(); in synchronous_benchmark()
102 let start = Instant::now(); in non_blocking_benchmark()
/third_party/rust/crates/quote/benches/
Dtimer.rs2 use std::time::Instant;
8 let begin = Instant::now(); in time()
/third_party/rust/crates/tracing/tracing-subscriber/benches/support/
Dmod.rs4 time::{Duration, Instant},
45 let t0 = Instant::now(); in run()
/third_party/flutter/skia/third_party/externals/wuffs/script/bench-rust-gif/src/
Dmain.rs43 use std::time::Instant;
57 let start = Instant::now(); in main()
/third_party/flutter/skia/third_party/externals/wuffs/script/bench-rust-gif-dot-rs/src/
Dmain.rs49 use std::time::Instant;
69 let start = Instant::now(); in main()
/third_party/rust/crates/nix/test/
Dtest_timer.rs10 use std::time::{Duration, Instant};
78 let starttime = Instant::now(); in alarm_fires()
/third_party/rust/crates/tracing/tracing-log/benches/
Dlogging.rs5 use std::time::{Duration, Instant};
77 let start = Instant::now(); in bench_logger()
/third_party/rust/crates/once_cell/xtask/src/
Dmain.rs4 use std::time::Instant;
102 let start = Instant::now(); in section()
/third_party/rust/crates/bindgen/bindgen-tests/tests/
Dstylo_sanity.rs23 use std::time::Instant; in sanity_check_can_generate_stylo_bindings()
25 let then = Instant::now(); in sanity_check_can_generate_stylo_bindings()
544 let now = Instant::now(); in sanity_check_can_generate_stylo_bindings()
/third_party/rust/crates/syn/benches/
Drust.rs20 use std::time::{Duration, Instant};
100 let begin = Instant::now(); in exec()
/third_party/rust/crates/syn/tests/
Dtest_round_trip.rs34 use std::time::Instant;
79 let start = Instant::now(); in test()
/third_party/rust/crates/tracing/tracing-subscriber/src/fmt/
Dfmt_layer.rs8 use std::{any::TypeId, cell::RefCell, fmt, io, marker::PhantomData, ops::Deref, time::Instant};
832 let now = Instant::now(); in on_enter()
852 let now = Instant::now(); in on_exit()
877 idle += (Instant::now() - last).as_nanos() as u64; in on_close()
1165 last: Instant,
1173 last: Instant::now(), in new()

12