/base/msdp/device_status/rust/modules/scheduler/sys/src/ |
H A D | lib.rs | 46 use std::time::Duration; 132 pub fn post_delayed_task<F, R>(&self, task: F, delay: Duration) -> TaskHandle<R> in post_delayed_task() 154 pub fn post_perioric_task<F>(&self, task: F, delay: Option<Duration>, interval: Duration, in post_perioric_task()
|
/base/request/request/services/tests/ |
H A D | resume.rs | 15 use std::time::Duration; 38 std::thread::sleep(std::time::Duration::from_secs(1)); in sdv_start_resume() 49 ylong_runtime::time::sleep(Duration::from_secs(1)).await; in sdv_start_resume()
|
H A D | start.rs | 15 use std::time::Duration; 46 ylong_runtime::time::sleep(Duration::from_secs(1)).await; in sdv_start_basic()
|
/base/hiviewdfx/faultloggerd/common/dfxutil/ |
H A D | elapsed_time.h | 51 template<typename Duration=std::chrono::nanoseconds> 54 return std::chrono::duration_cast<Duration>(std::chrono::high_resolution_clock::now() - begin_).count(); in Elapsed()
|
/base/update/updateservice/services/firmware/upgrade/data_processor/include/ |
H A D | firmware_check_data_processor.h | 33 CheckStatus status, const Duration &duration, const std::vector<FirmwareComponent> &componentList); 62 Duration duration_;
|
/base/msdp/device_status/rust/modules/scheduler/test/src/ |
H A D | lib.rs | 23 use std::time::Duration; 129 fn wait(&self, dur: Duration) -> bool in wait() 168 assert!(epoll.wait(Duration::from_millis(100))); in test_add_epoll_handler() 218 }, None, Duration::from_millis(100), Some(10)); in test_post_perioric_task() 220 std::thread::sleep(Duration::from_secs(1)); in test_post_perioric_task() 237 }, Duration::from_millis(10)); in test_post_delayed_task() 239 assert!(epoll.wait(Duration::from_millis(100))); in test_post_delayed_task() 252 std::thread::sleep(Duration::from_millis(100)); in test_post_blocking_task()
|
/base/request/request/services/examples/ |
H A D | run_count.rs | 45 std::thread::sleep(std::time::Duration::from_secs(1)); in main() 52 std::thread::sleep(std::time::Duration::from_secs(30000)); in main()
|
/base/request/request/services/src/manage/ |
H A D | account.rs | 108 ylong_runtime::time::sleep(std::time::Duration::from_millis(500)).await; 123 ylong_runtime::time::sleep(std::time::Duration::from_millis(500)).await; 152 std::thread::sleep(std::time::Duration::from_millis(500)); 171 std::thread::sleep(std::time::Duration::from_millis(500)); 192 std::thread::sleep(std::time::Duration::from_millis(500)); 211 std::thread::sleep(std::time::Duration::from_millis(500)); 306 ylong_runtime::time::sleep(std::time::Duration::from_secs(2)).await; in ut_account_update()
|
/base/request/request/services/src/manage/scheduler/state/ |
H A D | mod.rs | 15 use std::time::Duration; 62 std::thread::sleep(Duration::from_millis(500)); 111 ylong_runtime::time::sleep(Duration::from_secs(60)).await;
|
/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/ |
H A D | stream_session.rs | 20 use std::{ffi::{CString, c_char}, thread::sleep, time::Duration}; 142 sleep(Duration::from_micros(SEND_RETRY_SLEEP_TIME)); in session_send_msg() 152 sleep(Duration::from_micros(SEND_RETRY_SLEEP_TIME)); in session_send_msg()
|
/base/request/request/services/src/manage/scheduler/queue/ |
H A D | keeper.rs | 15 use std::time::Duration; 91 ylong_runtime::time::sleep(Duration::from_secs(UNLOAD_WAITING)).await;
|
/base/update/updateservice/services/firmware/upgrade/executor/include/ |
H A D | firmware_check_executor.h | 40 Duration duration_;
|
H A D | firmware_iexecutor.h | 28 CheckStatus status, const Duration &duration, const std::vector<FirmwareComponent> &componentList,
|
/base/update/updateservice/services/firmware/upgrade/mode/src/ |
H A D | firmware_manual_check_mode_empty.cpp | 40 CheckStatus status, const Duration &duration, const std::vector<FirmwareComponent> &componentList, in SetCheckResult()
|
/base/request/request/pre_download/netstack_rs/tests/ |
H A D | download.rs | 16 use std::time::Duration;
|
/base/update/updateservice/services/firmware/upgrade/flow/include/ |
H A D | firmware_flow_manager.h | 40 void OnCheckCallback(CheckStatus status, const Duration &duration,
|
/base/update/updateservice/services/firmware/upgrade/mode/include/ |
H A D | firmware_manual_check_mode.h | 31 void SetCheckResult(CheckStatus status, const Duration &duration,
|
H A D | firmware_iexecute_mode.h | 41 virtual void SetCheckResult(CheckStatus status, const Duration &duration, in SetCheckResult()
|
/base/update/updateservice/services/firmware/utils/include/ |
H A D | firmware_check_analyze_utils.h | 33 void DoAnalyze(const std::string &rawJson, std::vector<FirmwareComponent> &components, Duration &duration,
|
/base/request/request/pre_download/native/src/download/ |
H A D | task.rs | 95 use std::time::Duration; 110 std::thread::sleep(Duration::from_secs(10)); in ut_predownload()
|
/base/request/request/services/src/manage/config/ |
H A D | cert_manager.rs | 15 use std::time::Duration; 52 ylong_runtime::time::sleep(Duration::from_secs(UPDATE_SYSTEM_CERT_INTERVAL_IN_SECS)).await;
|
/base/update/updateservice/services/firmware/upgrade/flow/src/ |
H A D | firmware_flow_manager.cpp | 82 void FirmwareFlowManager::OnCheckCallback(CheckStatus status, const Duration &duration, in OnCheckCallback() 132 FirmwareCheckComponentCallback checkCallback {[=](CheckStatus status, const Duration &duration, in CreateInstance()
|
/base/security/code_signature/services/key_enable/src/ |
H A D | key_enable.rs | 29 use std::time::{Duration, Instant};
196 } else if start_time.elapsed() >= Duration::from_secs(PROFILE_SEARCH_SLEEP_OUT_TIME) {
in add_profile_cert_path_thread() 200 thread::sleep(Duration::from_millis(PROFILE_SEARCH_SLEEP_TIME));
in add_profile_cert_path_thread()
|
/base/request/request/services/src/task/ |
H A D | operator.rs | 19 use std::time::Duration; 83 self.sleep = Some(Box::pin(sleep(Duration::from_millis(self.more_sleep_time)))); 103 self.sleep = Some(Box::pin(sleep(Duration::from_millis(sleep_time))));
|
/base/update/updateservice/services/firmware/upgrade/executor/src/ |
H A D | firmware_check_executor.cpp | 54 [=](CheckStatus status, const Duration &duration, const std::vector<FirmwareComponent> &firmwareCheckResultList, in DoCheck()
|