/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/time/ |
H A D | wheel.rs | 150 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 D | timeout.rs | 113 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 D | js-apis-date-time.md | 23 | 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<number> | 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<number> | 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 D | js-apis-system-time.md | 20 Obtains the time elapsed since the Unix epoch. This API uses an asynchronous callback to return the… 29 | callback | AsyncCallback<number> | 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<number> | 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<number> | 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<number> | 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 D | dhcp_arp_checker.cpp | 142 int64_t elapsed = 0; in DoArpCheck() local 168 … elapsed = 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 D | ylong_timer_latency.rs | 25 let since = start.elapsed(); in main() 47 let since = start.elapsed(); in main()
|
H A D | ylong_runtime_task_starvation.rs | 38 let time_cost = instant.elapsed().as_secs(); in main()
|
/ohos5.0/foundation/multimedia/camera_framework/ |
H A D | hisysevent_dps.yaml | 54 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 D | dns_checker.cpp | 213 int64_t elapsed = 0; in checkDnsValid() local 224 … elapsed = 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 D | scene_demo.js | 28 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 D | fold_screen_policy.cpp | 113 …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 D | crypto_manager.rs | 88 … 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 D | avdemuxer_demo_runner.cpp | 255 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 D | ylong_tokio_tcp_perf.rs | 143 st.elapsed().as_secs_f64() * 1000f64 / 1000.0 in main() 187 st.elapsed().as_secs_f64() * 1000f64 / 1000.0 in main()
|
H A D | ylong_runtime_async_benchmark.rs | 112 let time = st.elapsed().as_secs_f64(); in main()
|
/ohos5.0/docs/zh-cn/application-dev/ui/ |
H A D | ui-js-animate-frame.md | 76 var elapsed = timestamp - this.startTime; 77 if (elapsed < 500) {
|
/ohos5.0/docs/en/application-dev/ui/ |
H A D | ui-js-animate-frame.md | 77 var elapsed = timestamp - this.startTime; 78 if (elapsed < 500) {
|
/ohos5.0/docs/en/application-dev/napi/ |
H A D | use-jsvm-about-date.md | 9 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 D | sys_event.rs | 66 let duration = start_time.elapsed(); in upload_statistic_system_event()
|
/ohos5.0/docs/en/release-notes/api-diff/v3.1-beta/ |
H A D | js-apidiff-v3.1-beta.md | 12 …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 D | unwinder_test.cpp | 502 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 D | js-apis-logs.md | 443 …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 D | key_enable.rs | 196 } 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 D | user-file-uri-intro.md | 164 … | 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 D | object_registry.cpp | 50 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()
|