/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/examples/ |
H A D | ylong_runtime_timer_sleep.rs | 16 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 D | ylong_timer_latency.rs | 16 use std::time::{Duration, Instant}; 23 let start = Instant::now(); in main() 45 let start = Instant::now(); in main()
|
H A D | ylong_runtime_signal.rs | 17 use std::time::{Duration, Instant}; 77 let start = Instant::now(); in main() 81 let end = Instant::now(); in main()
|
H A D | ylong_runtime_task_starvation.rs | 20 use tokio::time::Instant; 29 let instant = Instant::now(); in main()
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/time/ |
H A D | sleep.rs | 19 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 D | timer.rs | 17 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 D | driver.rs | 20 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 D | ylong_sync_rwlock_perf.rs | 17 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 D | ylong_sync_mutex_perf.rs | 17 use std::time::Instant; 25 let start = Instant::now(); in main() 30 let end = Instant::now(); in main()
|
H A D | ylong_runtime_tcp_client_perf.rs | 17 use std::time::Instant; 31 let start = Instant::now(); in main() 43 let end = Instant::now(); in main()
|
H A D | ylong_runtime_tcp_server_perf.rs | 17 use std::time::Instant; 39 let start = Instant::now(); in main() 56 let end = Instant::now(); in main()
|
H A D | ylong_tokio_tcp_perf.rs | 23 use std::time::Instant; 109 let st = Instant::now(); in main() 153 let st = Instant::now(); in main()
|
H A D | ylong_runtime_async_benchmark.rs | 16 use std::time::Instant; 59 let st = Instant::now(); in main()
|
/ohos5.0/commonlibrary/rust/ylong_json/examples/ |
H A D | ylong_json_perf.rs | 24 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 D | mod.rs | 27 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 D | sys_event.rs | 18 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 D | lib.rs | 20 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 D | mod.rs | 17 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 D | reader.rs | 16 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 D | crypto.rs | 18 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 D | multimodal-instant-tip.md | 1 # Instant Tip 14 
|
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/ |
H A D | timer_test.rs | 19 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 D | listener.rs | 23 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 D | driver_handle.rs | 25 use std::time::Instant; 87 pub(crate) fn start_time(&self) -> Instant {
|
/ohos5.0/base/security/code_signature/services/key_enable/src/ |
H A D | key_enable.rs | 29 use std::time::{Duration, Instant}; 192 let start_time = Instant::now(); in add_profile_cert_path_thread()
|