Home
last modified time | relevance | path

Searched refs:ms (Results 1 - 25 of 1204) sorted by relevance

12345678910>>...49

/test/xts/acts/kernel_lite/utils/
H A Dutils.cpp233 // get cur-time plus ms
234 void GetDelayedTime(struct timespec *ts, unsigned int ms) in GetDelayedTime() argument
237 unsigned int setTimeNs = ms * 1000000; in GetDelayedTime()
244 // calculate time difference, in ms
248 int ms = (ts1.tv_sec - ts2.tv_sec) * nsecPerSec + (ts1.tv_nsec - ts2.tv_nsec); in GetTimeDiff() local
249 ms = ms / 1000000; in GetTimeDiff()
250 return ms; in GetTimeDiff()
H A Dmt_utils.cpp71 static uint32_t GetNumberFromMS(uint32_t ms) in GetNumberFromMS() argument
74 if (MSECOND_INDEX[i] == ms) { in GetNumberFromMS()
81 int BusyRun(uint32_t ms) in BusyRun() argument
83 uint32_t n = GetNumberFromMS(ms); in BusyRun()
85 LOG("BusyRun Error: %d ms not support", n); in BusyRun()
H A Dmt_utils.h27 * desc: keep cpu run for 'ms' miliseconds, without any syscall or pend operation
33 int BusyRun(uint32_t ms);
/test/xts/device_attest/services/core/utils/
H A Dattest_utils_timer.c37 static void AttestMs2TimeSpec(struct timespec *tp, uint32_t ms) in AttestMs2TimeSpec() argument
43 tp->tv_sec = (time_t)(ms / LOSCFG_BASE_CORE_MS_PER_SECOND); in AttestMs2TimeSpec()
44 ms -= (uint32_t)(tp->tv_sec * LOSCFG_BASE_CORE_MS_PER_SECOND); in AttestMs2TimeSpec()
45 tp->tv_nsec = (long)(((unsigned long long)ms * OS_SYS_NS_PER_SECOND) / LOSCFG_BASE_CORE_MS_PER_SECOND); in AttestMs2TimeSpec()
/test/xts/device_attest_lite/services/core/utils/
H A Dattest_utils_timer.c40 static void AttestMs2TimeSpec(struct timespec *tp, uint32_t ms) in AttestMs2TimeSpec() argument
46 tp->tv_sec = (time_t)(ms / LOSCFG_BASE_CORE_MS_PER_SECOND); in AttestMs2TimeSpec()
47 ms -= (uint32_t)(tp->tv_sec * LOSCFG_BASE_CORE_MS_PER_SECOND); in AttestMs2TimeSpec()
48 tp->tv_nsec = (long)(((unsigned long long)ms * OS_SYS_NS_PER_SECOND) / LOSCFG_BASE_CORE_MS_PER_SECOND); in AttestMs2TimeSpec()
/test/xts/hats/kernel/posix_interface/interface_gn/utils/
H A Dmt_utils.cpp74 static uint32_t GetNumberFromMS(uint32_t ms) in GetNumberFromMS() argument
77 if (MSECOND_INDEX[i] == ms) { in GetNumberFromMS()
84 int BusyRun(uint32_t ms) in BusyRun() argument
86 uint32_t n = GetNumberFromMS(ms); in BusyRun()
88 LOG("BusyRun Error: %d ms not support", n); in BusyRun()
H A Dutils.cpp321 // get cur-time plus ms
322 void GetDelayedTime(struct timespec *ts, unsigned int ms) in GetDelayedTime() argument
325 unsigned int setTimeNs = ms * 1000000; in GetDelayedTime()
332 // calculate time difference, in ms
337 int ms = (ts1.tv_sec - ts2.tv_sec) * nsecPerSec + (ts1.tv_nsec - ts2.tv_nsec); in GetTimeDiff() local
338 ms = ms / nsectomsec; in GetTimeDiff()
339 return ms; in GetTimeDiff()
H A Dmt_utils.h27 * desc: keep cpu run for 'ms' miliseconds, without any syscall or pend operation
33 int BusyRun(uint32_t ms);
H A Dutils.h116 * desc: get current time, plus 'ms'
118 void GetDelayedTime(struct timespec *ts, unsigned int ms);
121 * desc: calculate time difference, in ms
122 * output: return time difference, unit is ms
/test/xts/hats/hdf/display/composer/benchmark/
H A Ddisplay_benchmark_ut_test.cpp49 int32_t WaitVblank(uint32_t ms);
96 int32_t VblankCtr::WaitVblank(uint32_t ms) in WaitVblank() argument
102 ret = vblankCondition_.wait_for(lck, std::chrono::milliseconds(ms), [=] { return hasVblank_; }); in WaitVblank()
121 VblankCtr::GetInstance().WaitVblank(SLEEP_CONT_100); // wait for last vsync 100ms. in TearDown()
150 ret = VblankCtr::GetInstance().WaitVblank(SLEEP_CONT_1000); // 1000ms in BENCHMARK_F()
155 usleep(SLEEP_CONT_100 * SLEEP_CONT_1000); // wait for 100ms avoid the last vsync. in BENCHMARK_F()
156 ret = VblankCtr::GetInstance().WaitVblank(SLEEP_CONT_1000); // 1000ms in BENCHMARK_F()
/test/xts/acts/ability/ability_runtime/actsserviceabilityclienttest/actsserviceabilityclienttest/entry/src/main/js/ServiceAbility2/
H A Dservice.js52 function sleep(ms) {
53 return new Promise(resolve => setTimeout(resolve, ms));
/test/xts/acts/location/geolocation_standard/entry/src/ohosTest/js/test/
H A DGetCountryCodeM.test.js23 function sleep(ms) {
24 return new Promise(resolve => setTimeout(resolve, ms));
H A DGetCountryCode.test.js22 function sleep(ms) {
23 return new Promise(resolve => setTimeout(resolve, ms));
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dotherstestndk.cpp1019 unsigned int ms = PARAM_100; in Pthreadcondtimeoutnp() local
1025 int pthread = pthread_cond_timeout_np(&cond, &mutex, ms); in Pthreadcondtimeoutnp()
1052 static inline void GetDelayedTimeByClockid(struct timespec *ts, unsigned int ms, clockid_t clockid) in GetDelayedTimeByClockid() argument
1055 unsigned int setTimeNs = ms * US_PER_S; in GetDelayedTimeByClockid()
1064 unsigned ms = DELAY_TIME_100_MS; in PthreadLockTimeoutNPNoOut() local
1068 GetDelayedTimeByClockid(&ts, ms, CLOCK_MONOTONIC); in PthreadLockTimeoutNPNoOut()
1069 pthread_mutex_lock_timeout_np(mtx, ms); in PthreadLockTimeoutNPNoOut()
1091 int ms = (ts1.tv_sec - ts2.tv_sec) * nsecPerSec + (ts1.tv_nsec - ts2.tv_nsec); in GetTimeDiff() local
1092 ms = ms / NSEC_PER_MSE in GetTimeDiff()
[all...]
H A Dthreadsndk1.cpp581 #define ms (1000.0) macro
589 return us * (sd - PARAM_1) + (ns + nsd) / ms; in ustimer()
591 return us * (sd) + nsd / ms; in ustimer()
603 ret |= elapsed < PARAM_10 * ms; in Thrd_sleep()
H A Dthreadsndk.cpp36 #define ms (1000.0) macro
180 return us * (sd - PARAM_1) + (ns + nsd) / ms; in ustimer()
182 return us * (sd) + nsd / ms; in ustimer()
/test/xts/acts/distributeddatamgr/relationalStoretest/RdbJstest/hap/entry/src/ohosTest/js/test/
H A DRdbstoreRdbstoreJsunit.test.js29 function sleep(ms) {
30 return new Promise(resolve => setTimeout(resolve, ms));
/test/testfwk/arkxtest/jsunit/src/
H A Dservice.js83 reject(new Error('execute timeout ' + timeout + 'ms'));
101 reject(new Error('execute timeout ' + timeout + 'ms'));
124 reject(new Error('execute timeout ' + timeout + 'ms'));
1183 this.formatPrint('error', spec.description + ' ; consuming ' + spec.duration + 'ms');
1186 this.formatPrint('fail', spec.description + ' ; consuming ' + spec.duration + 'ms');
1189 this.formatPrint('pass', spec.description + ' ; consuming ' + spec.duration + 'ms');
1197 console.info(`[suite end] ${suite.description} consuming ${suite.duration} ms${message}`);
1204 msg += ',pass ' + summary.pass + '; consuming ' + summary.duration + 'ms';
/test/xts/hats/hdf/display/composer/unittest_additional/
H A Dhdi_composer_ut.h47 int32_t WaitVblank(uint32_t ms);
/test/xts/hats/hdf/display/composer/moduletest/
H A Dhdi_device_test.h59 int32_t WaitVblank(uint32_t ms);
/test/xts/hats/hdf/display/composer/unittest/
H A Dhdi_composer_ut.h49 int32_t WaitVblank(uint32_t ms);
/test/xts/acts/location/geolocation_errorCode/entry/src/ohosTest/js/test/
H A DLocationErrorTest.test.js33 function sleep(ms) {
34 return new Promise(resolve => setTimeout(resolve, ms));
/test/xts/acts/multimedia/media/media_js_standard/
H A DMediaTestBase.js147 export async function msleepAsync(ms) {
148 return new Promise((resolve) => setTimeout(resolve, ms));
/test/testfwk/arkxtest/uitest/core/
H A Dui_driver.cpp350 void UiDriver::DelayMs(uint32_t ms) in DelayMs() argument
352 if (ms > 0) { in DelayMs()
353 this_thread::sleep_for(chrono::milliseconds(ms)); in DelayMs()
/test/xts/acts/multimedia/av_codec/demuxer/src/
H A Dapi_test.cpp655 uint32_t ms = 1000; in HWTEST_F() local
662 ret = OH_AVDemuxer_SeekToTime(demuxer, ms, SEEK_MODE_NEXT_SYNC); in HWTEST_F()
664 ret = OH_AVDemuxer_SeekToTime(demuxer, ms, SEEK_MODE_NEXT_SYNC); in HWTEST_F()

Completed in 16 milliseconds

12345678910>>...49