Home
last modified time | relevance | path

Searched refs:monotonic (Results 1 - 25 of 75) sorted by relevance

123

/third_party/python/Lib/test/
H A 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()
[all...]
H A 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()
H A Dtest_threadsignals.py101 t1 = time.monotonic()
103 dt = time.monotonic() - t1
142 t1 = time.monotonic()
144 dt = time.monotonic() - t1
209 self.start = time.monotonic()
211 self.end = time.monotonic()
H A Dtest_zipfile64.py47 next_time = time.monotonic() + _PRINT_WORKING_MSG_INTERVAL
51 if next_time <= time.monotonic():
52 next_time = time.monotonic() + _PRINT_WORKING_MSG_INTERVAL
63 if next_time <= time.monotonic():
64 next_time = time.monotonic() + _PRINT_WORKING_MSG_INTERVAL
H A Dtest_wait4.py25 deadline = time.monotonic() + support.SHORT_TIMEOUT
26 while time.monotonic() <= deadline:
H A Dtest_wait3.py23 deadline = time.monotonic() + support.SHORT_TIMEOUT
24 while time.monotonic() <= deadline:
H A Dfork_wait.py57 deadline = time.monotonic() + support.SHORT_TIMEOUT
60 if deadline < time.monotonic():
H A Dsignalinterproctester.py32 deadline = time.monotonic() + timeout
34 while time.monotonic() < deadline:
H A Dlock_tests.py85 # The waiting and/or time.monotonic() can be imprecise, which
201 t1 = time.monotonic()
203 t2 = time.monotonic()
208 t1 = time.monotonic()
210 t2 = time.monotonic()
413 t1 = time.monotonic()
415 t2 = time.monotonic()
583 t1 = time.monotonic()
585 t2 = time.monotonic()
622 dt = time.monotonic()
[all...]
H A Dtest_time.py69 self.assertFalse(info.monotonic)
82 check_ns(time.monotonic(),
467 # monotonic() should not go backward
468 times = [time.monotonic() for n in range(100)]
474 # monotonic() includes time elapsed during a sleep
475 t1 = time.monotonic()
477 t2 = time.monotonic()
484 # monotonic() is a monotonic but non adjustable clock
485 info = time.get_clock_info('monotonic')
[all...]
/third_party/python/Lib/test/support/
H A Dthreading_helper.py90 start_time = time.monotonic()
96 if time.monotonic() > deadline:
97 dt = time.monotonic() - start_time
138 endtime = time.monotonic()
142 t.join(max(endtime - time.monotonic(), 0.01))
/third_party/python/Modules/
H A Dtimemodule.c160 info->monotonic = 1; in _PyTime_GetClockWithInfo()
1150 "monotonic() -> float\n\
1230 info->monotonic = 1;
1267 info->monotonic = 1;
1293 info->monotonic = 1;
1349 info->monotonic = 1;
1423 info->monotonic = 1;
1457 info->monotonic = 1;
1475 info->monotonic = 1;
1510 info->monotonic
2133 _PyTime_t deadline, monotonic; global() local
[all...]
/third_party/pulseaudio/src/pulsecore/
H A Dtime-smoother.c55 * If 'monotonic' is true the resulting estimation function is
56 * guaranteed to be monotonic.
82 bool monotonic:1; member
94 bool monotonic, in pa_smoother_new()
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()
91 pa_smoother_new( pa_usec_t adjust_time, pa_usec_t history_time, bool monotonic, bool smoothing, unsigned min_history, pa_usec_t time_offset, bool paused) pa_smoother_new() argument
[all...]
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_init/
H A 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()
139 * pca[3] = (if supported) monotonic clock cond attribute in main()
140 * pca[4] = (if supported) pshared + monotonic in main()
149 if ((monotonic > 0) && ((i == 2) || (i == 3))) { in main()
155 "Set monotonic clock failed"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/
H A D2-4.c74 int c_clock; /* 0: cond uses the default clock. ~ !0: Cond uses monotonic clock, if supported. */
254 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()
409 "[parent] Unable to set the monotonic clock for the cond"); in main()
H A D4-2.c73 int c_clock; /* 0: cond uses the default clock. ~ !0: Cond uses monotonic clock, if supported. */
209 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()
373 "[parent] Unable to set the monotonic clock for the cond"); in main()
H A D2-7.c75 int c_clock; /* 0: cond uses the default clock. ~ !0: Cond uses monotonic clock, if supported. */
261 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()
416 "[parent] Unable to set the monotonic clock for the cond"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/
H A D2-2.c102 int c_clock; /* 0: cond uses the default clock. ~ !0: Cond uses monotonic clock, if supported. */
270 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()
425 "[parent] Unable to set the monotonic clock for the cond"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/
H A D1-2.c117 int c_clock; /* 0: cond uses the default clock. ~ !0: Cond uses monotonic clock, if supported. */
291 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()
443 "[parent] Unable to set the monotonic clock for the cond"); in main()
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_wait/
H A Dstress1.c128 int c_clock; /* 0: cond uses the default clock. ~ !0: Cond uses monotonic clock, if supported. */
383 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()
547 "[parent] Unable to set the monotonic clock for the cond"); in main()
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cond_timedwait/
H A Dstress1.c118 int c_clock; /* 0: cond uses the default clock. ~ !0: Cond uses monotonic clock, if supported. */
389 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()
553 "[parent] Unable to set the monotonic clock for the cond"); in main()
H A Dstress2.c94 int c_clock; /* 0: cond uses the default clock. ~ !0: Cond uses monotonic clock, if supported. */
421 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()
515 "[parent] Unable to set the monotonic clock for the cond"); in main()
/third_party/python/Lib/test/libregrtest/
H A Druntest_mp.py163 dt = time.monotonic() - self.start_time
207 test_result.duration_sec = time.monotonic() - self.start_time
211 self.start_time = time.monotonic()
350 dt = time.monotonic() - start_time
364 dt = time.monotonic() - worker.start_time
401 start_time = time.monotonic()
/third_party/python/Python/
H A Dpytime.c884 info->monotonic = 0; in py_get_system_clock()
925 info->monotonic = 0; in py_get_system_clock()
959 info->monotonic = 0; in py_get_system_clock()
1076 info->monotonic = 1; in py_get_monotonic_clock()
1099 info->monotonic = 1; in py_get_monotonic_clock()
1127 info->monotonic = 1; in py_get_monotonic_clock()
1155 info->monotonic = 1; in py_get_monotonic_clock()
1242 info->monotonic = 1; in py_get_win_perf_counter()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/
H A D2-1.c118 int c_clock; /* 0: cond uses the default clock. ~ !0: Cond uses monotonic clock, if supported. */
333 long pshared, monotonic, cs, mf; in main() local
350 monotonic = sysconf(_SC_MONOTONIC_CLOCK); in main()
358 output(" MON : %li\n", monotonic); in main()
362 if ((cs < 0) || (monotonic < 0)) in main()
367 if (monotonic < 0) in main()
485 "[parent] Unable to set the monotonic clock for the cond"); in main()

Completed in 18 milliseconds

123