Home
last modified time | relevance | path

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

12

/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/examples/
H A Dylong_runtime_timer_sleep.rs16 use std::time::{Duration, Instant};
27 let start = Instant::now(); in main()
29 println!("{:?}", Instant::now() - start); in main()
32 let start = Instant::now(); in main()
34 println!("{:?}", Instant::now() - start); in main()
37 let start = Instant::now(); in main()
39 println!("{:?}", Instant::now() - start); in main()
48 let start = Instant::now(); in main()
52 println!("{:?}", Instant::now() - start); in main()
H A Dylong_timer_latency.rs16 use std::time::{Duration, Instant};
23 let start = Instant::now(); in main()
45 let start = Instant::now(); in main()
H A Dylong_runtime_signal.rs17 use std::time::{Duration, Instant};
77 let start = Instant::now(); in main()
81 let end = Instant::now(); in main()
H A Dylong_runtime_task_starvation.rs20 use tokio::time::Instant;
29 let instant = Instant::now(); in main()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/time/
H A Dsleep.rs19 use std::time::{Duration, Instant};
31 pub fn sleep_until(instant: Instant) -> Sleep { in sleep_until()
46 match Instant::now().checked_add(duration) { in sleep()
48 None => Sleep::new_timeout(Instant::now() + TEN_YEARS), in sleep()
72 deadline: Instant,
97 fn new_timeout(deadline: Instant) -> Self {
109 pub(crate) fn reset(&mut self, new_deadline: Instant) {
173 pub(crate) fn deadline(&self) -> Instant { in deadline() argument
194 fn new_timeout(deadline: Instant) -> Self {
213 pub(crate) fn reset(self: Pin<&mut Self>, new_deadline: Instant) {
[all …]
H A Dtimer.rs17 use std::time::{Duration, Instant};
48 timer_at(Instant::now(), period) in timer()
77 pub fn timer_at(start: Instant, period: Duration) -> Timer { in timer_at() argument
138 pub async fn next_period(&mut self) -> Instant { in next_period() argument
142 fn poll_next_period(&mut self, cx: &mut Context<'_>) -> Poll<Instant> { in poll_next_period() argument
160 self.start.as_mut().reset(Instant::now() + self.period); in reset()
172 use std::time::{Duration, Instant};
203 Instant::now() + Duration::new(0, 20_000_000), in ut_new_timer_base()
228 Instant::now() + Duration::from_millis(100), in ut_new_timer_timeout()
H A Ddriver.rs20 use std::time::{Duration, Instant};
27 start_time: Instant,
38 start_time: Instant::now(), in initialize()
49 pub(crate) fn start_time(&self) -> Instant { in start_time() argument
90 let now = Instant::now(); in run()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/benches/bin/
H A Dylong_sync_rwlock_perf.rs17 use std::time::Instant;
25 let start = Instant::now(); in main()
33 let end = Instant::now(); in main()
36 let start = Instant::now(); in main()
41 let end = Instant::now(); in main()
H A Dylong_sync_mutex_perf.rs17 use std::time::Instant;
25 let start = Instant::now(); in main()
30 let end = Instant::now(); in main()
H A Dylong_runtime_tcp_client_perf.rs17 use std::time::Instant;
31 let start = Instant::now(); in main()
43 let end = Instant::now(); in main()
H A Dylong_runtime_tcp_server_perf.rs17 use std::time::Instant;
39 let start = Instant::now(); in main()
56 let end = Instant::now(); in main()
H A Dylong_tokio_tcp_perf.rs23 use std::time::Instant;
109 let st = Instant::now(); in main()
153 let st = Instant::now(); in main()
H A Dylong_runtime_async_benchmark.rs16 use std::time::Instant;
59 let st = Instant::now(); in main()
/ohos5.0/commonlibrary/rust/ylong_json/examples/
H A Dylong_json_perf.rs24 use std::time::Instant;
49 let st = Instant::now(); in main()
54 let ed = Instant::now(); in main()
63 let st = Instant::now(); in main()
68 let ed = Instant::now(); in main()
/ohos5.0/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/async_impl/downloader/
H A Dmod.rs27 use tokio::time::Instant;
209 let now = Instant::now(); in check_timeout()
226 pub(crate) start_time: Instant,
234 start_time: Instant::now(), in new()
/ohos5.0/base/security/asset/services/core_service/src/
H A Dsys_event.rs18 use std::time::Instant;
65 pub(crate) fn upload_statistic_system_event(calling_info: &CallingInfo, start_time: Instant, func_n… in upload_statistic_system_event() argument
87 start_time: Instant, in upload_fault_system_event() argument
113 start_time: Instant, in upload_system_event() argument
H A Dlib.rs20 time::{Duration, Instant},
68 let start = Instant::now(); in on_start_with_reason()
159 let start = Instant::now();
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/downloader/
H A Dmod.rs17 use std::time::Instant;
208 let now = Instant::now(); in check_timeout()
225 pub(crate) start_time: Instant,
233 start_time: Instant::now(), in new()
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/
H A Dreader.rs16 use std::time::{Duration, Instant};
119 let mut last = Instant::now(); in read_all()
141 let now = Instant::now(); in read_all()
/ohos5.0/base/security/asset/services/crypto_manager/src/
H A Dcrypto.rs18 use std::time::Instant;
51 start_time: Instant,
63 start_time: Instant::now(), in build()
178 pub(crate) fn start_time(&self) -> &Instant { in start_time() argument
/ohos5.0/docs/en/design/ux-design/
H A Dmultimodal-instant-tip.md1 # Instant Tip
14 ![Instant tip.png](figures/instant-tip.png)
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/
H A Dtimer_test.rs19 use std::time::{Duration, Instant};
71 let handle = ylong_runtime::spawn(async move { sleep_until(Instant::now()) }); in sdv_sleep_drop_out_context()
/ohos5.0/base/security/asset/services/core_service/src/common_event/
H A Dlistener.rs23 time::{Duration, Instant},
137 let start_time = Instant::now(); in delete_data_by_owner()
208 static ref RECORD_TIME: Mutex<Option<Instant>> = Mutex::new(None);
213 let cur_time = Instant::now(); in backup_db_sync()
353 fn backup_all_db(start_time: &Instant) -> Result<()> { in backup_all_db()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/executor/
H A Ddriver_handle.rs25 use std::time::Instant;
87 pub(crate) fn start_time(&self) -> Instant {
/ohos5.0/base/security/code_signature/services/key_enable/src/
H A Dkey_enable.rs29 use std::time::{Duration, Instant};
192 let start_time = Instant::now(); in add_profile_cert_path_thread()

12