Home
last modified time | relevance | path

Searched refs:elapsed (Results 1 – 25 of 55) sorted by relevance

123

/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/time/
H A Dwheel.rs150 elapsed: u64, field
175 elapsed: 0, in new()
182 pub(crate) fn elapsed(&self) -> u64 { in elapsed() method
183 self.elapsed in elapsed()
187 pub(crate) fn set_elapsed(&mut self, elapsed: u64) { in set_elapsed()
188 self.elapsed = elapsed; in set_elapsed()
193 pub(crate) fn find_level(expiration: u64, elapsed: u64) -> usize { in find_level()
203 let mut masked = (expiration ^ elapsed) | SLOT_MASK; in find_level()
223 if expiration <= self.elapsed() { in insert()
229 let level = Self::find_level(expiration, self.elapsed()); in insert()
[all …]
H A Dtimeout.rs113 async fn elapsed() -> bool { in ut_timeout_test() function
124 let handle = spawn(elapsed()); in ut_timeout_test()
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/
H A Djs-apis-date-time.md23 | STARTUP | 0 | Number of milliseconds elapsed since system startup, including the deep sleep ti…
24 | ACTIVE | 1 | Number of milliseconds elapsed since system startup, excluding the deep sleep ti…
30 Obtains the time elapsed since the Unix epoch. This API uses an asynchronous callback to return the…
43 | callback | AsyncCallback&lt;number&gt; | Yes | Callback used to return the time elapsed since th…
76 Obtains the time elapsed since the Unix epoch. This API uses an asynchronous callback to return the…
121 Obtains the time elapsed since the Unix epoch. This API uses a promise to return the result.
139 | Promise&lt;number&gt; | Promise used to return the timestamp that has elapsed since the Unix epoc…
450 Obtains the time elapsed since the Unix epoch. This API returns the result synchronously.
464 | number | Time elapsed since the Unix epoch.|
483 Obtains the time elapsed since system startup. This API returns the result synchronously.
[all …]
H A Djs-apis-system-time.md20 Obtains the time elapsed since the Unix epoch. This API uses an asynchronous callback to return the…
29 | callback | AsyncCallback&lt;number&gt; | Yes | Callback used to return the time elapsed since th…
62 Obtains the time elapsed since the Unix epoch. This API uses an asynchronous callback to return the…
70 | callback | AsyncCallback&lt;number&gt; | Yes | Callback used to return the time elapsed since th…
103 Obtains the time elapsed since the Unix epoch. This API uses a promise to return the result.
117 | Promise&lt;number&gt; | Promise used to return the time elapsed since the Unix epoch.|
148 Obtains the time elapsed since system startup, excluding the deep sleep time. This API uses an asyn…
231 Obtains the time elapsed since system startup, excluding the deep sleep time. This API uses a promi…
245 | Promise&lt;number&gt; | Promise used to return the time elapsed since system startup, excluding t…
359 Obtains the time elapsed since system startup, including the deep sleep time. This API uses a promi…
[all …]
/ohos5.0/foundation/communication/dhcp/services/utils/src/
H A Ddhcp_arp_checker.cpp142 int64_t elapsed = 0; in DoArpCheck() local
168elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(current - startTime).count(); in DoArpCheck()
169 leftMillis -= static_cast<int32_t>(elapsed); in DoArpCheck()
212 …int64_t elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(current - startTime).count… in GetGwMacAddrList() local
213 leftMillis -= static_cast<int32_t>(elapsed); in GetGwMacAddrList()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/examples/
H A Dylong_timer_latency.rs25 let since = start.elapsed(); in main()
47 let since = start.elapsed(); in main()
H A Dylong_runtime_task_starvation.rs38 let time_cost = instant.elapsed().as_secs(); in main()
/ohos5.0/foundation/multimedia/camera_framework/
H A Dhisysevent_dps.yaml54 SYNCHRONIZETIME: {type: UINT64, desc: Task synchronization elapsed time}
56 PROCESSTIME: {type: UINT64, desc: HAL processing task elapsed time}
58 RESTORETIME: {type: UINT64, desc: Recovery task elapsed time}
59 CANCELTIME: {type: UINT64, desc: Undo task elapsed time}
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/net_helper/
H A Ddns_checker.cpp213 int64_t elapsed = 0; in checkDnsValid() local
224elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(current - startTime).count(); in checkDnsValid()
225 leftMillis -= static_cast<int>(elapsed); in checkDnsValid()
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample/
H A Dscene_demo.js28 let elapsed = now - last; variable
30 let newAngle = angle + (10 * elapsed) / 1000.0;
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/fold_screen_controller/
H A Dfold_screen_policy.cpp113 …auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(endTimePoint_ - startTimePoin… in getFoldingElapsedMs() local
114 return static_cast<int64_t>(elapsed); in getFoldingElapsedMs()
/ohos5.0/base/security/asset/services/crypto_manager/src/
H A Dcrypto_manager.rs88 … max_time = max(crypto.valid_time() as u64 - crypto.start_time().elapsed().as_secs(), max_time) in max_crypto_expire_duration()
94 …self.cryptos.retain(|crypto| crypto.start_time().elapsed().as_secs() <= crypto.valid_time() as u64… in remove_expired_crypto()
/ohos5.0/foundation/multimedia/av_codec/test/nativedemo/avdemuxer/
H A Davdemuxer_demo_runner.cpp255 std::chrono::duration<double> elapsed = end - start; in ConvertPtsFrameIndexDemo() local
265 elapsed = end - start; in ConvertPtsFrameIndexDemo()
268 printf("Function took %f seconds to run.\n", elapsed.count()); in ConvertPtsFrameIndexDemo()
276 elapsed = end - start; in ConvertPtsFrameIndexDemo()
278 printf("Function took %f seconds to run.\n", elapsed.count()); in ConvertPtsFrameIndexDemo()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/benches/bin/
H A Dylong_tokio_tcp_perf.rs143 st.elapsed().as_secs_f64() * 1000f64 / 1000.0 in main()
187 st.elapsed().as_secs_f64() * 1000f64 / 1000.0 in main()
H A Dylong_runtime_async_benchmark.rs112 let time = st.elapsed().as_secs_f64(); in main()
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Dui-js-animate-frame.md76 var elapsed = timestamp - this.startTime;
77 if (elapsed < 500) {
/ohos5.0/docs/en/application-dev/ui/
H A Dui-js-animate-frame.md77 var elapsed = timestamp - this.startTime;
78 if (elapsed < 500) {
/ohos5.0/docs/en/application-dev/napi/
H A Duse-jsvm-about-date.md9 In JSVM-API, the value of a JS **Date** object is the number of milliseconds elapsed since the Unix…
37 …// Obtain the number of seconds elapsed since the Unix epoch using the C function and convert the …
/ohos5.0/base/security/asset/services/core_service/src/
H A Dsys_event.rs66 let duration = start_time.elapsed(); in upload_statistic_system_event()
/ohos5.0/docs/en/release-notes/api-diff/v3.1-beta/
H A Djs-apidiff-v3.1-beta.md12 …d | Added | Added the API for obtaining the number of milliseconds elapsed since the Unix ep…
13 … | Added | Added the API for obtaining the number of milliseconds elapsed since the Unix ep…
14 …void | Added | Added the API for obtaining the number of nanoseconds elapsed since the Unix ep…
15 … | Added | Added the API for obtaining the number of nanoseconds elapsed since the Unix ep…
16 …void | Added | Added the API for obtaining the number of milliseconds elapsed since the system …
17 … | Added | Added the API for obtaining the number of milliseconds elapsed since the system …
18 … void | Added | Added the API for obtaining the number of nanoseconds elapsed since the system …
19 … | Added | Added the API for obtaining the number of nanoseconds elapsed since the system …
20 … | Added | Added the API for obtaining the number of milliseconds elapsed since the system …
22 …d | Added | Added the API for obtaining the number of nanoseconds elapsed since the system …
[all …]
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/unwind/
H A Dunwinder_test.cpp502 time_t elapsed = counter.Elapsed(); variable
503 GTEST_LOG_(INFO) << "StepTest003: Elapsed: " << elapsed;
556 time_t elapsed = counter.Elapsed(); variable
557 GTEST_LOG_(INFO) << "StepTest004: Elapsed: " << elapsed;
/ohos5.0/docs/en/application-dev/reference/common/
H A Djs-apis-logs.md443 …operation. You can use **console.timeEnd()** to close the timer and print the elapsed time (in ms).
465 Stops the timer started by calling **console.time()** and prints the elapsed time (in ms).
489 Prints the elapsed time and other data parameters for the timer started by **console.time()**.
/ohos5.0/base/security/code_signature/services/key_enable/src/
H A Dkey_enable.rs196 } else if start_time.elapsed() >= Duration::from_secs(PROFILE_SEARCH_SLEEP_OUT_TIME) { in add_profile_cert_path_thread()
/ohos5.0/docs/en/application-dev/file-management/
H A Duser-file-uri-intro.md164 … | Date when the file was added. The value is the number of seconds elapsed since the Epoch t…
165 …not the file name) was last modified. The value is the number of seconds elapsed since the Epoch t…
169 … | Date when the photo was taken. The value is the number of seconds elapsed since the Epoch t…
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/
H A Dobject_registry.cpp50 auto elapsed = std::chrono::high_resolution_clock::now(); in GenerateInstanceId() local
51 …auto high = std::chrono::duration_cast<std::chrono::nanoseconds>(elapsed.time_since_epoch()).count… in GenerateInstanceId()

123