/external/python/cpython3/Lib/test/eintrdata/ |
D | eintr_tester.py | 48 sleep_time = 0.2 variable in EINTRBaseTest 83 code = 'import time; time.sleep(%r)' % self.sleep_time 129 'sleep_time = %r' % self.sleep_time, 156 'sleep_time = %r' % self.sleep_time, 203 'sleep_time = %r' % self.sleep_time, 244 'sleep_time = %r' % self.sleep_time, 296 'sleep_time = %r' % self.sleep_time, 332 'sleep_time = %r' % self.sleep_time, 372 time.sleep(self.sleep_time) 375 self.assertGreaterEqual(dt, self.sleep_time) [all …]
|
/external/libcxx/utils/google-benchmark/src/ |
D | sleep.cc | 36 struct timespec sleep_time; 37 sleep_time.tv_sec = microseconds / kNumMicrosPerSecond; 38 sleep_time.tv_nsec = (microseconds % kNumMicrosPerSecond) * kNumNanosPerMicro; 39 while (nanosleep(&sleep_time, &sleep_time) != 0 && errno == EINTR)
|
/external/llvm-project/libcxx/utils/google-benchmark/src/ |
D | sleep.cc | 36 struct timespec sleep_time; 37 sleep_time.tv_sec = microseconds / kNumMicrosPerSecond; 38 sleep_time.tv_nsec = (microseconds % kNumMicrosPerSecond) * kNumNanosPerMicro; 39 while (nanosleep(&sleep_time, &sleep_time) != 0 && errno == EINTR)
|
/external/llvm-project/llvm/utils/benchmark/src/ |
D | sleep.cc | 36 struct timespec sleep_time; 37 sleep_time.tv_sec = microseconds / kNumMicrosPerSecond; 38 sleep_time.tv_nsec = (microseconds % kNumMicrosPerSecond) * kNumNanosPerMicro; 39 while (nanosleep(&sleep_time, &sleep_time) != 0 && errno == EINTR)
|
/external/sfntly/cpp/src/test/ |
D | platform_thread.cc | 86 struct timespec sleep_time, remaining; 89 sleep_time.tv_sec = duration_ms / 1000; 90 duration_ms -= sleep_time.tv_sec * 1000; 93 sleep_time.tv_nsec = duration_ms * 1000 * 1000; // nanoseconds. 95 while (nanosleep(&sleep_time, &remaining) == -1 && errno == EINTR) 96 sleep_time = remaining;
|
/external/google-benchmark/src/ |
D | sleep.cc | 51 struct timespec sleep_time; 52 sleep_time.tv_sec = microseconds / kNumMicrosPerSecond; 53 sleep_time.tv_nsec = (microseconds % kNumMicrosPerSecond) * kNumNanosPerMicro; 54 while (nanosleep(&sleep_time, &sleep_time) != 0 && errno == EINTR)
|
/external/tensorflow/tensorflow/lite/profiling/ |
D | time.cc | 51 timespec sleep_time; 52 sleep_time.tv_sec = micros / 1e6; 53 micros -= sleep_time.tv_sec * 1e6; 54 sleep_time.tv_nsec = micros * 1e3; 55 nanosleep(&sleep_time, nullptr);
|
/external/grpc-grpc/src/ruby/end2end/ |
D | multiple_killed_watching_threads_driver.rb | 23 def watch_state(ch, sleep_time) argument 31 sleep sleep_time 35 def run_multiple_killed_watches(num_threads, sleep_time) argument 40 watch_state(ch, sleep_time)
|
/external/autotest/client/profilers/screenshot/ |
D | screenshot.py | 48 sleep_time = 0 50 while not self.stopped.wait(sleep_time): 73 sleep_time = self.interval - (end_time - start_time) 75 if sleep_time < 0: 76 sleep_time = 0
|
/external/tensorflow/tensorflow/core/platform/default/ |
D | env.cc | 113 timespec sleep_time; in SleepForMicroseconds() local 114 sleep_time.tv_sec = 0; in SleepForMicroseconds() 115 sleep_time.tv_nsec = 0; in SleepForMicroseconds() 118 sleep_time.tv_sec = in SleepForMicroseconds() 120 micros -= static_cast<int64>(sleep_time.tv_sec) * 1e6; in SleepForMicroseconds() 123 sleep_time.tv_nsec = 1000 * micros; in SleepForMicroseconds() 126 while (nanosleep(&sleep_time, &sleep_time) != 0 && errno == EINTR) { in SleepForMicroseconds()
|
/external/autotest/client/profilers/cros_perf/ |
D | cros_perf.py | 90 sleep_time = 0 92 while not self.stopped.wait(sleep_time): 116 sleep_time = self.interval - (end_time - start_time) 118 if sleep_time < 0: 119 sleep_time = 0
|
/external/walt/android/WALT/app/src/main/jni/ |
D | sync_clock.c | 211 int sleep_time = (clk->maxE - minE) / kSleepTimeDivider; in improve_minE() local 212 if(sleep_time > kMaxSleepUs) sleep_time = kMaxSleepUs; in improve_minE() 213 if(sleep_time < kMinSleepUs) sleep_time = kMinSleepUs; in improve_minE() 222 microsleep(sleep_time); in improve_minE() 245 LOGD("E is between %d and %d us, sleep_time=%d\n", clk->minE, clk->maxE, sleep_time); in improve_minE()
|
/external/libchrome/base/threading/ |
D | platform_thread_posix.cc | 178 struct timespec sleep_time, remaining; in Sleep() local 183 sleep_time.tv_sec = duration.InSeconds(); in Sleep() 184 duration -= TimeDelta::FromSeconds(sleep_time.tv_sec); in Sleep() 185 sleep_time.tv_nsec = duration.InMicroseconds() * 1000; // nanoseconds in Sleep() 187 while (nanosleep(&sleep_time, &remaining) == -1 && errno == EINTR) in Sleep() 188 sleep_time = remaining; in Sleep()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
D | 14-1.c | 46 static volatile long sleep_time; variable 81 sleep_time++; in sendsig() 82 if (sleep_time / SIGNALS_WITHOUT_DELAY > 0) { in sendsig() 84 (sleep_time * 1000) / SIGNALS_WITHOUT_DELAY; in sendsig() 134 sleep_time = 0; in test()
|
/external/python/dateutil/ci_tools/ |
D | retry.bat | 7 REM Loop at most n_retries times, waiting sleep_time times between 8 set sleep_time=60 variable 14 timeout /t %sleep_time% /nobreak > nul
|
D | retry.sh | 2 sleep_time=60 7 sleep $sleep_time
|
/external/ltp/testcases/kernel/mem/mmapstress/ |
D | mmapstress06.c | 67 int sleep_time = 0; in main() local 73 if (argc != 2 || !(sleep_time = atoi(argv[1]))) { in main() 97 (void)sleep(sleep_time); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_detach/ |
D | 4-3.c | 62 static long sleep_time; variable 110 sleep_time++; in sendsig() 111 if (sleep_time / SIGNALS_WITHOUT_DELAY > 0) { in sendsig() 113 (sleep_time * 1000) / SIGNALS_WITHOUT_DELAY; in sendsig() 174 sleep_time = 0; in test()
|
/external/autotest/server/site_tests/display_HotPlugAtSuspend/ |
D | display_HotPlugAtSuspend.py | 103 sleep_time = (self.SUSPEND_DURATION - 106 if sleep_time > 0: 107 logging.info('- Sleep for %.2f seconds...', sleep_time) 108 time.sleep(sleep_time)
|
/external/ltp/lib/ |
D | tst_timer_test.c | 35 static int sleep_time = -1; variable 410 do_timer_test(sleep_time, sample_cnt); in single_timer_test() 424 if (tst_parse_int(str_sleep_time, &sleep_time, 0, INT_MAX)) { in parse_timer_opts() 438 if (sleep_time < 0) in parse_timer_opts() 439 sleep_time = 10000; in parse_timer_opts() 444 long long timeout = sleep_time * sample_cnt / 1000000; in parse_timer_opts()
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/debugging/ |
D | failure_signal_handler.cc | 287 struct timespec sleep_time; in PortableSleepForSeconds() 288 sleep_time.tv_sec = seconds; in PortableSleepForSeconds() 289 sleep_time.tv_nsec = 0; in PortableSleepForSeconds() 290 while (nanosleep(&sleep_time, &sleep_time) != 0 && errno == EINTR) {} in PortableSleepForSeconds()
|
/external/openscreen/third_party/abseil/src/absl/debugging/ |
D | failure_signal_handler.cc | 287 struct timespec sleep_time; in PortableSleepForSeconds() 288 sleep_time.tv_sec = seconds; in PortableSleepForSeconds() 289 sleep_time.tv_nsec = 0; in PortableSleepForSeconds() 290 while (nanosleep(&sleep_time, &sleep_time) != 0 && errno == EINTR) {} in PortableSleepForSeconds()
|
/external/angle/third_party/abseil-cpp/absl/debugging/ |
D | failure_signal_handler.cc | 296 struct timespec sleep_time; in PortableSleepForSeconds() 297 sleep_time.tv_sec = seconds; in PortableSleepForSeconds() 298 sleep_time.tv_nsec = 0; in PortableSleepForSeconds() 299 while (nanosleep(&sleep_time, &sleep_time) != 0 && errno == EINTR) {} in PortableSleepForSeconds()
|
/external/libtextclassifier/abseil-cpp/absl/debugging/ |
D | failure_signal_handler.cc | 287 struct timespec sleep_time; in PortableSleepForSeconds() 288 sleep_time.tv_sec = seconds; in PortableSleepForSeconds() 289 sleep_time.tv_nsec = 0; in PortableSleepForSeconds() 290 while (nanosleep(&sleep_time, &sleep_time) != 0 && errno == EINTR) {} in PortableSleepForSeconds()
|
/external/abseil-cpp/absl/debugging/ |
D | failure_signal_handler.cc | 287 struct timespec sleep_time; in PortableSleepForSeconds() 288 sleep_time.tv_sec = seconds; in PortableSleepForSeconds() 289 sleep_time.tv_nsec = 0; in PortableSleepForSeconds() 290 while (nanosleep(&sleep_time, &sleep_time) != 0 && errno == EINTR) {} in PortableSleepForSeconds()
|