Home
last modified time | relevance | path

Searched refs:Duration (Results 1 - 25 of 43) sorted by relevance

12

/base/msdp/device_status/rust/modules/scheduler/sys/src/
H A Dlib.rs46 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 Dresume.rs15 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 Dstart.rs15 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 Delapsed_time.h51 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 Dfirmware_check_data_processor.h33 CheckStatus status, const Duration &duration, const std::vector<FirmwareComponent> &componentList);
62 Duration duration_;
/base/msdp/device_status/rust/modules/scheduler/test/src/
H A Dlib.rs23 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 Drun_count.rs45 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 Daccount.rs108 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 Dmod.rs15 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 Dstream_session.rs20 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 Dkeeper.rs15 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 Dfirmware_check_executor.h40 Duration duration_;
H A Dfirmware_iexecutor.h28 CheckStatus status, const Duration &duration, const std::vector<FirmwareComponent> &componentList,
/base/update/updateservice/services/firmware/upgrade/mode/src/
H A Dfirmware_manual_check_mode_empty.cpp40 CheckStatus status, const Duration &duration, const std::vector<FirmwareComponent> &componentList, in SetCheckResult()
/base/request/request/pre_download/netstack_rs/tests/
H A Ddownload.rs16 use std::time::Duration;
/base/update/updateservice/services/firmware/upgrade/flow/include/
H A Dfirmware_flow_manager.h40 void OnCheckCallback(CheckStatus status, const Duration &duration,
/base/update/updateservice/services/firmware/upgrade/mode/include/
H A Dfirmware_manual_check_mode.h31 void SetCheckResult(CheckStatus status, const Duration &duration,
H A Dfirmware_iexecute_mode.h41 virtual void SetCheckResult(CheckStatus status, const Duration &duration, in SetCheckResult()
/base/update/updateservice/services/firmware/utils/include/
H A Dfirmware_check_analyze_utils.h33 void DoAnalyze(const std::string &rawJson, std::vector<FirmwareComponent> &components, Duration &duration,
/base/request/request/pre_download/native/src/download/
H A Dtask.rs95 use std::time::Duration;
110 std::thread::sleep(Duration::from_secs(10)); in ut_predownload()
/base/request/request/services/src/manage/config/
H A Dcert_manager.rs15 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 Dfirmware_flow_manager.cpp82 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 Dkey_enable.rs29 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 Doperator.rs19 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 Dfirmware_check_executor.cpp54 [=](CheckStatus status, const Duration &duration, const std::vector<FirmwareComponent> &firmwareCheckResultList, in DoCheck()

Completed in 6 milliseconds

12