Home
last modified time | relevance | path

Searched refs:milliseconds (Results 1 - 14 of 14) sorted by relevance

/commonlibrary/c_utils/base/test/benchmarktest/timer_benchmark_test/
H A Dtimer_benchmark_test.cpp91 std::this_thread::sleep_for(std::chrono::milliseconds(15)); in BENCHMARK_F()
113 std::this_thread::sleep_for(std::chrono::milliseconds(500)); in BENCHMARK_F()
135 std::this_thread::sleep_for(std::chrono::milliseconds(30)); in BENCHMARK_F()
147 bool StartTimer(int milliseconds, bool once);
166 bool A::StartTimer(int milliseconds, bool once) in StartTimer() argument
169 uint32_t timerId = timer_.Register(std::bind(&A::TimeOutProc, this), milliseconds, once); in StartTimer()
190 std::this_thread::sleep_for(std::chrono::milliseconds(20)); in BENCHMARK_F()
213 std::this_thread::sleep_for(std::chrono::milliseconds(10)); in BENCHMARK_F()
239 std::this_thread::sleep_for(std::chrono::milliseconds(10)); in BENCHMARK_F()
301 std::this_thread::sleep_for(std::chrono::milliseconds(5 in BENCHMARK_F()
[all...]
/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_timer_test.cpp84 std::this_thread::sleep_for(std::chrono::milliseconds(8));
86 std::this_thread::sleep_for(std::chrono::milliseconds(10));
103 std::this_thread::sleep_for(std::chrono::milliseconds(15)); in HWTEST_F()
121 std::this_thread::sleep_for(std::chrono::milliseconds(500)); in HWTEST_F()
134 std::this_thread::sleep_for(std::chrono::milliseconds(sleepTime)); in TestTimerEvent()
157 bool StartTimer(int milliseconds, bool once);
177 bool A::StartTimer(int milliseconds, bool once) in StartTimer() argument
179 uint32_t timerId = timer_.Register(std::bind(&A::TimeOutProc, this), milliseconds, once); in StartTimer()
198 std::this_thread::sleep_for(std::chrono::milliseconds(10));
213 std::this_thread::sleep_for(std::chrono::milliseconds(2 in HWTEST_F()
[all...]
H A Dutils_rwlock_test.cpp41 this_thread::sleep_for(std::chrono::milliseconds(10)); // 10: Extend time of holding the lock in WriteStr()
52 this_thread::sleep_for(std::chrono::milliseconds(10)); // 10: Extend time of holding the lock in ReadStr()
76 this_thread::sleep_for(std::chrono::milliseconds(4)); // Try our best to make `first` get the lock in HWTEST_F()
105 this_thread::sleep_for(chrono::milliseconds(4)); in HWTEST_F()
H A Dutils_event_test.cpp350 std::this_thread::sleep_for(std::chrono::milliseconds(16)); in HWTEST_F()
384 std::this_thread::sleep_for(std::chrono::milliseconds(1)); in HWTEST_F()
389 std::this_thread::sleep_for(std::chrono::milliseconds(16)); in HWTEST_F()
460 std::this_thread::sleep_for(std::chrono::milliseconds(16)); in HWTEST_F()
497 std::this_thread::sleep_for(std::chrono::milliseconds(16)); in HWTEST_F()
534 std::this_thread::sleep_for(std::chrono::milliseconds(16)); in HWTEST_F()
942 std::this_thread::sleep_for(std::chrono::milliseconds(15)); in HWTEST_F()
960 std::this_thread::sleep_for(std::chrono::milliseconds(500)); in HWTEST_F()
973 std::this_thread::sleep_for(std::chrono::milliseconds(sleepTime)); in TestTimerEvent()
997 bool StartTimer(int milliseconds, boo in GetData()
1018 StartTimer(int milliseconds, bool once) StartTimer() argument
[all...]
H A Dutils_refbase_test.cpp246 std::this_thread::sleep_for(std::chrono::milliseconds(1)); in QueryObjectInner()
259 std::this_thread::sleep_for(std::chrono::milliseconds(1)); in FindOrNewObject()
1133 std::this_thread::sleep_for(std::chrono::milliseconds(1000)); in HWTEST_F()
1135 std::this_thread::sleep_for(std::chrono::milliseconds(1000)); in HWTEST_F()
1138 std::this_thread::sleep_for(std::chrono::milliseconds(1000)); in HWTEST_F()
1152 std::this_thread::sleep_for(std::chrono::milliseconds(1000)); in HWTEST_F()
1154 std::this_thread::sleep_for(std::chrono::milliseconds(1000)); in HWTEST_F()
1157 std::this_thread::sleep_for(std::chrono::milliseconds(1000)); in HWTEST_F()
1178 std::this_thread::sleep_for(std::chrono::milliseconds(1000)); in HWTEST_F()
1182 std::this_thread::sleep_for(std::chrono::milliseconds(100 in HWTEST_F()
[all...]
/commonlibrary/c_utils/base/test/benchmarktest/safe_block_queue_benchmark_test/
H A Dsafe_block_queue_benchmark_test.cpp136 timeT += std::chrono::milliseconds(SLEEP_FOR_TWENTY_MILLISECOND); in GetTimeOfSleepTwentyMillisecond()
201 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_TWENTY_MILLISECOND));
216 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_TWENTY_MILLISECOND));
303 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_TWENTY_MILLISECOND)); in BENCHMARK_F()
314 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_TWENTY_MILLISECOND)); in BENCHMARK_F()
350 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_TWENTY_MILLISECOND)); in BENCHMARK_F()
363 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_TWENTY_MILLISECOND)); in BENCHMARK_F()
403 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_TWENTY_MILLISECOND)); in BENCHMARK_F()
414 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_TWENTY_MILLISECOND)); in BENCHMARK_F()
451 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_TWENTY_MILLISECON in BENCHMARK_F()
[all...]
/commonlibrary/c_utils/base/test/benchmarktest/safe_block_queue_tracking_benchmark_test/
H A Dsafe_block_queue_tracking_benchmark_test.cpp180 timeT += std::chrono::milliseconds(SLEEP_FOR_HUNDRED_MILLISECOND); in GetTimeOfSleepHundredMillisecond()
253 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_HUNDRED_MILLISECOND)); in BENCHMARK_F()
265 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_HUNDRED_MILLISECOND)); in BENCHMARK_F()
295 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_HUNDRED_MILLISECOND)); in BENCHMARK_F()
313 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_HUNDRED_MILLISECOND)); in BENCHMARK_F()
323 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_HUNDRED_MILLISECOND)); in BENCHMARK_F()
352 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_HUNDRED_MILLISECOND)); in BENCHMARK_F()
367 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_HUNDRED_MILLISECOND)); in BENCHMARK_F()
398 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_HUNDRED_MILLISECOND)); in BENCHMARK_F()
413 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_HUNDRED_MILLISECON in BENCHMARK_F()
[all...]
/commonlibrary/c_utils/base/test/benchmarktest/rwlock_benchmark_test/
H A Drwlock_benchmark_test.cpp66 this_thread::sleep_for(std::chrono::milliseconds(10)); // 10: Extend time of holding the lock in WriteStr()
78 this_thread::sleep_for(std::chrono::milliseconds(10)); // 10: Extend time of holding the lock in ReadStr()
105 this_thread::sleep_for(std::chrono::milliseconds(SLEEP_DURATION_MS)); in BENCHMARK_F()
140 this_thread::sleep_for(chrono::milliseconds(SLEEP_DURATION_MS)); in BENCHMARK_F()
172 this_thread::sleep_for(std::chrono::milliseconds(SLEEP_DURATION_MS)); in BENCHMARK_F()
/commonlibrary/c_utils/base/test/benchmarktest/event_benchmark_test/
H A Devent_benchmark_test.cpp447 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_SIXTEEN_MILLISECONDS)); in BENCHMARK_F()
503 std::this_thread::sleep_for(std::chrono::milliseconds(1)); in BENCHMARK_F()
508 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_SIXTEEN_MILLISECONDS)); in BENCHMARK_F()
568 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_SIXTEEN_MILLISECONDS)); in BENCHMARK_F()
616 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_SIXTEEN_MILLISECONDS)); in BENCHMARK_F()
664 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_SIXTEEN_MILLISECONDS)); in BENCHMARK_F()
1095 std::this_thread::sleep_for(std::chrono::milliseconds(sleepDurationMs)); in BENCHMARK_F()
1120 std::this_thread::sleep_for(std::chrono::milliseconds(sleepDurationMs)); in BENCHMARK_F()
1146 std::this_thread::sleep_for(std::chrono::milliseconds(sleepDurationMs)); in BENCHMARK_F()
1159 bool StartTimer(int milliseconds, boo
1177 StartTimer(int milliseconds, bool once) StartTimer() argument
[all...]
/commonlibrary/ets_utils/js_concurrent_module/common/helper/
H A Dconcurrent_helper.h78 auto millisecs = std::chrono::duration_cast<std::chrono::milliseconds>(now.time_since_epoch()); in GetMilliseconds()
/commonlibrary/c_utils/base/test/benchmarktest/safe_map_benchmark_test/
H A Dsafe_map_benchmark_test.cpp433 timeT += std::chrono::milliseconds(SLEEP_FOR_FIFTY_MILLISECOND); in BENCHMARK_F()
483 timeT += std::chrono::milliseconds(SLEEP_FOR_FIFTY_MILLISECOND); in BENCHMARK_F()
536 timeT += std::chrono::milliseconds(SLEEP_FOR_FIFTY_MILLISECOND); in BENCHMARK_F()
585 timeT += std::chrono::milliseconds(SLEEP_FOR_FIFTY_MILLISECOND); in BENCHMARK_F()
/commonlibrary/c_utils/base/test/fuzztest/timer_fuzzer/
H A Dtimer_fuzzer.cpp46 std::this_thread::sleep_for(std::chrono::milliseconds(sleepTime));
/commonlibrary/c_utils/base/test/benchmarktest/refbase_benchmark_test/
H A Drefbase_benchmark_test.cpp281 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_ONE_MILLISECOND)); in QueryObjectInner()
294 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_FOR_ONE_MILLISECOND)); in FindOrNewObject()
/commonlibrary/ets_utils/js_concurrent_module/worker/
H A Dworker.cpp936 if (!worker->cv_.wait_for(lock, std::chrono::milliseconds(timeout), [worker]() { in GlobalCall()

Completed in 17 milliseconds