Home
last modified time | relevance | path

Searched refs:monotonic (Results 1 – 25 of 143) sorted by relevance

123456

/third_party/python/Lib/test/
D_test_eintr.py372 t0 = time.monotonic()
375 dt = time.monotonic() - t0
406 t0 = time.monotonic()
410 dt = time.monotonic() - t0
436 t0 = time.monotonic()
438 dt = time.monotonic() - t0
448 t0 = time.monotonic()
450 dt = time.monotonic() - t0
459 t0 = time.monotonic()
461 dt = time.monotonic() - t0
[all …]
Dtest_epoll.py172 now = time.monotonic()
174 then = time.monotonic()
189 now = time.monotonic()
191 then = time.monotonic()
201 now = time.monotonic()
203 then = time.monotonic()
220 now = time.monotonic()
222 then = time.monotonic()
Dtest_threadsignals.py98 t1 = time.monotonic()
100 dt = time.monotonic() - t1
139 t1 = time.monotonic()
141 dt = time.monotonic() - t1
206 self.start = time.monotonic()
208 self.end = time.monotonic()
Dtest_zipfile64.py46 next_time = time.monotonic() + _PRINT_WORKING_MSG_INTERVAL
50 if next_time <= time.monotonic():
51 next_time = time.monotonic() + _PRINT_WORKING_MSG_INTERVAL
62 if next_time <= time.monotonic():
63 next_time = time.monotonic() + _PRINT_WORKING_MSG_INTERVAL
Dtest_wait4.py23 deadline = time.monotonic() + support.SHORT_TIMEOUT
24 while time.monotonic() <= deadline:
Dlock_tests.py201 t1 = time.monotonic()
203 t2 = time.monotonic()
208 t1 = time.monotonic()
210 t2 = time.monotonic()
413 t1 = time.monotonic()
415 t2 = time.monotonic()
577 t1 = time.monotonic()
579 t2 = time.monotonic()
616 dt = time.monotonic()
618 dt = time.monotonic() - dt
[all …]
Dtest_wait3.py23 deadline = time.monotonic() + support.SHORT_TIMEOUT
24 while time.monotonic() <= deadline:
/third_party/python/Lib/test/support/
Dthreading_helper.py89 start_time = time.monotonic()
95 if time.monotonic() > deadline:
96 dt = time.monotonic() - start_time
137 endtime = time.monotonic()
141 t.join(max(endtime - time.monotonic(), 0.01))
/third_party/glfw/src/
Dposix_time.c47 _glfw.posix_time.monotonic = GLFW_TRUE; in _glfwInitTimerPOSIX()
53 _glfw.posix_time.monotonic = GLFW_FALSE; in _glfwInitTimerPOSIX()
66 if (_glfw.posix_time.monotonic) in _glfwPlatformGetTimerValue()
/third_party/pulseaudio/src/pulsecore/
Dtime-smoother.c82 bool monotonic:1; member
94 bool monotonic, in pa_smoother_new() argument
111 s->monotonic = monotonic; in pa_smoother_new()
241 return (s->monotonic && r < 0) ? 0 : r; in avg_gradient()
338 if (s->monotonic) { in estimate()
401 if (s->monotonic) in pa_smoother_get()
407 if (s->monotonic) { in pa_smoother_get()
/third_party/python/Modules/
Dtimemodule.c148 info->monotonic = 1; in _PyTime_GetClockWithInfo()
1204 info->monotonic = 1;
1241 info->monotonic = 1;
1267 info->monotonic = 1;
1323 info->monotonic = 1;
1397 info->monotonic = 1;
1431 info->monotonic = 1;
1449 info->monotonic = 1;
1482 info->monotonic = 1;
1560 info.monotonic = -1;
[all …]
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/
Ds-c.c101 long monotonic, pshared; in main() local
104 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
107 output("Support for monotonic clock : %li\n", monotonic); in main()
149 if ((monotonic > 0) && ((i == 2) || (i == 3))) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/
D2-2.c270 long pshared, monotonic, cs, mf; in main() local
276 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
284 output(" MON : %li\n", monotonic); in main()
288 if ((cs < 0) || (monotonic < 0)) in main()
293 if (monotonic < 0) in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/
D2-7.c261 long pshared, monotonic, cs, mf; in main() local
269 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
277 output(" MON : %li\n", monotonic); in main()
281 if ((cs < 0) || (monotonic < 0)) in main()
286 if (monotonic < 0) in main()
D2-4.c254 long pshared, monotonic, cs, mf; in main() local
260 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
268 output(" MON : %li\n", monotonic); in main()
272 if ((cs < 0) || (monotonic < 0)) in main()
277 if (monotonic < 0) in main()
D4-2.c209 long pshared, monotonic, cs, mf; in main() local
214 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
222 output(" MON : %li\n", monotonic); in main()
226 if ((cs < 0) || (monotonic < 0)) in main()
232 if (monotonic < 0) in main()
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_wait/
Dstress2.c430 long pshared, monotonic, cs; in main() local
439 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
446 output(" MON : %li\n", monotonic); in main()
447 if ((cs < 0) || (monotonic < 0)) in main()
451 if (monotonic < 0) in main()
Dstress1.c383 long pshared, monotonic, cs, mf; in main() local
391 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
399 output(" MON : %li\n", monotonic); in main()
403 if ((cs < 0) || (monotonic < 0)) in main()
408 if (monotonic < 0) in main()
Dstress.c430 long pshared, monotonic, cs; in main() local
439 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
446 output(" MON : %li\n", monotonic); in main()
447 if ((cs < 0) || (monotonic < 0)) in main()
451 if (monotonic < 0) in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/
D1-2.c291 long pshared, monotonic, cs, mf; in main() local
308 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
316 output(" MON : %li\n", monotonic); in main()
320 if ((cs < 0) || (monotonic < 0)) in main()
325 if (monotonic < 0) in main()
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/
Dstress2.c421 long pshared, monotonic, cs; in main() local
430 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
437 output(" MON : %li\n", monotonic); in main()
438 if ((cs < 0) || (monotonic < 0)) in main()
442 if (monotonic < 0) in main()
Dstress1.c389 long pshared, monotonic, cs, mf; in main() local
397 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
405 output(" MON : %li\n", monotonic); in main()
409 if ((cs < 0) || (monotonic < 0)) in main()
414 if (monotonic < 0) in main()
/third_party/python/Lib/test/test_asyncio/
Dtest_asyncio_waitfor.py17 exitat = time.monotonic() + self.TASK_TIMEOUT
20 tosleep = exitat - time.monotonic()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/
D2-3.c249 long pshared, monotonic, cs, mf; in main() local
267 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
275 output(" MON : %li\n", monotonic); in main()
279 if ((cs < 0) || (monotonic < 0)) in main()
283 if (monotonic < 0) in main()
/third_party/python/Python/
Dpytime.c679 info->monotonic = 0; in py_get_system_clock()
722 info->monotonic = 0; in py_get_system_clock()
755 info->monotonic = 0; in py_get_system_clock()
865 info->monotonic = 1; in py_get_monotonic_clock()
888 info->monotonic = 1; in py_get_monotonic_clock()
911 info->monotonic = 1; in py_get_monotonic_clock()
937 info->monotonic = 1; in py_get_monotonic_clock()
1036 info->monotonic = 1; in py_get_win_perf_counter()

123456