/external/python/cpython3/Include/ |
D | pytime.h | 19 typedef int64_t _PyTime_t; typedef 80 PyAPI_FUNC(_PyTime_t) _PyTime_FromSeconds(int seconds); 85 ((_PyTime_t)(seconds) * (1000 * 1000 * 1000)) 88 PyAPI_FUNC(_PyTime_t) _PyTime_FromNanoseconds(_PyTime_t ns); 91 PyAPI_FUNC(int) _PyTime_FromNanosecondsObject(_PyTime_t *t, 96 PyAPI_FUNC(int) _PyTime_FromSecondsObject(_PyTime_t *t, 102 PyAPI_FUNC(int) _PyTime_FromMillisecondsObject(_PyTime_t *t, 107 PyAPI_FUNC(double) _PyTime_AsSecondsDouble(_PyTime_t t); 110 PyAPI_FUNC(_PyTime_t) _PyTime_AsMilliseconds(_PyTime_t t, 114 PyAPI_FUNC(_PyTime_t) _PyTime_AsMicroseconds(_PyTime_t t, [all …]
|
/external/python/cpython3/Python/ |
D | pytime.c | 12 (_PyTime_t)(a) < _PyTime_MIN / (_PyTime_t)(b) \ 13 || _PyTime_MAX / (_PyTime_t)(b) < (_PyTime_t)(a)) 46 _PyTime_t 47 _PyTime_MulDiv(_PyTime_t ticks, _PyTime_t mul, _PyTime_t div) in _PyTime_MulDiv() 49 _PyTime_t intpart, remaining; in _PyTime_MulDiv() 237 _PyTime_t 240 _PyTime_t t; in _PyTime_FromSeconds() 247 t = (_PyTime_t)seconds; in _PyTime_FromSeconds() 254 _PyTime_t 255 _PyTime_FromNanoseconds(_PyTime_t ns) in _PyTime_FromNanoseconds() [all …]
|
D | thread_pthread.h | 343 _PyTime_t deadline = 0; in PyThread_acquire_lock_timed() 359 _PyTime_t timeout = _PyTime_FromNanoseconds(microseconds * 1000); in PyThread_acquire_lock_timed() 383 _PyTime_t dt = deadline - _PyTime_GetMonotonicClock(); in PyThread_acquire_lock_timed() 389 _PyTime_t realtime_deadline = _PyTime_GetSystemClock() + dt; in PyThread_acquire_lock_timed()
|
D | import.c | 1621 static _PyTime_t accumulated; in import_find_and_load() 1623 _PyTime_t t1 = 0, accumulated_copy = accumulated; in import_find_and_load() 1655 _PyTime_t cum = _PyTime_GetPerfCounter() - t1; in import_find_and_load()
|
/external/python/cpython3/Modules/ |
D | timemodule.c | 54 static int pysleep(_PyTime_t); 58 _PyFloat_FromPyTime(_PyTime_t t) in _PyFloat_FromPyTime() 68 _PyTime_t t = _PyTime_GetSystemClock(); in time_time() 82 _PyTime_t t = _PyTime_GetSystemClock(); in time_time_ns() 102 _PyTime_GetClockWithInfo(_PyTime_t *tp, _Py_clock_info_t *info) in _PyTime_GetClockWithInfo() 112 if ((_PyTime_t)CLOCKS_PER_SEC > _PyTime_MAX / SEC_TO_NS) { in _PyTime_GetClockWithInfo() 133 *tp = _PyTime_MulDiv(ticks, SEC_TO_NS, (_PyTime_t)CLOCKS_PER_SEC); in _PyTime_GetClockWithInfo() 141 _PyTime_t t; in perf_counter() 164 _PyTime_t t; in pyclock() 217 _PyTime_t t; in time_clock_gettime_ns() [all …]
|
D | _threadmodule.c | 45 acquire_timed(PyThread_type_lock lock, _PyTime_t timeout) in acquire_timed() 48 _PyTime_t endtime = 0; in acquire_timed() 49 _PyTime_t microseconds; in acquire_timed() 92 _PyTime_t *timeout) in lock_acquire_parse_args() 97 const _PyTime_t unset_timeout = _PyTime_FromSeconds(-1); in lock_acquire_parse_args() 123 _PyTime_t microseconds; in lock_acquire_parse_args() 138 _PyTime_t timeout; in lock_PyThread_acquire_lock() 288 _PyTime_t timeout; in rlock_acquire() 1370 timeout_max = (_PyTime_t)PY_TIMEOUT_MAX * 1e-6; in PyInit__thread()
|
D | _queuemodule.c | 179 _PyTime_t endtime = 0; in _queue_SimpleQueue_get_impl() 180 _PyTime_t timeout_val; in _queue_SimpleQueue_get_impl()
|
D | socketmodule.h | 224 _PyTime_t sock_timeout; /* Operation timeout in seconds;
|
D | selectmodule.c | 205 _PyTime_t timeout, deadline = 0; in select_select() 532 _PyTime_t timeout = -1, ms = -1, deadline = 0; in poll_poll() 891 _PyTime_t timeout, ms, deadline = 0; in devpoll_poll() 1507 _PyTime_t timeout, ms, deadline; in pyepoll_poll() 2125 _PyTime_t timeout, deadline = 0; in kqueue_queue_control()
|
D | socketmodule.c | 705 internal_select(PySocketSockObject *s, int writing, _PyTime_t interval, in internal_select() 711 _PyTime_t ms; in internal_select() 810 _PyTime_t timeout) in sock_call_ex() 813 _PyTime_t deadline = 0; in sock_call_ex() 827 _PyTime_t interval; in sock_call_ex() 943 static _PyTime_t defaulttimeout = _PYTIME_FROMSECONDS(-1); 2640 socket_parse_timeout(_PyTime_t *timeout, PyObject *timeout_obj) in socket_parse_timeout() 2646 _PyTime_t ms; in socket_parse_timeout() 2689 _PyTime_t timeout; in sock_settimeout() 3983 _PyTime_t interval = s->sock_timeout; in sock_sendall() [all …]
|
D | signalmodule.c | 138 _PyTime_t t; in timeval_from_double() 1055 _PyTime_t timeout, deadline, monotonic; in signal_sigtimedwait_impl()
|
D | faulthandler.c | 613 format_timeout(_PyTime_t us) in format_timeout() 646 _PyTime_t timeout, timeout_us; in faulthandler_dump_traceback_later()
|
D | _randommodule.c | 218 _PyTime_t now; in random_seed_time_pid()
|
D | _ssl.c | 491 static int PySSL_select(PySocketSockObject *s, int writing, _PyTime_t timeout); 992 _PyTime_t timeout, deadline = 0; in _ssl__SSLSocket_do_handshake_impl() 2174 PySSL_select(PySocketSockObject *s, int writing, _PyTime_t timeout) in PySSL_select() 2179 _PyTime_t ms; in PySSL_select() 2257 _PyTime_t timeout, deadline = 0; in _ssl__SSLSocket_write_impl() 2396 _PyTime_t timeout, deadline = 0; in _ssl__SSLSocket_read_impl() 2523 _PyTime_t timeout, deadline = 0; in _ssl__SSLSocket_shutdown_impl()
|
D | _testcapimodule.c | 4028 _PyTime_t ts; in test_pytime_fromseconds() 4041 _PyTime_t ts; in test_pytime_fromsecondsobject() 4056 _PyTime_t ts; in test_pytime_assecondsdouble() 4074 _PyTime_t t; in test_PyTime_AsTimeval() 4102 _PyTime_t t; in test_PyTime_AsTimespec() 4123 _PyTime_t t, ms; in test_PyTime_AsMilliseconds() 4145 _PyTime_t t, ms; in test_PyTime_AsMicroseconds()
|
D | gcmodule.c | 808 _PyTime_t t1 = 0; /* initialize to prevent a compiler warning */ in collect() 929 _PyTime_t t2 = _PyTime_GetMonotonicClock(); in collect()
|
D | _datetimemodule.c | 4823 _PyTime_t ts = _PyTime_GetSystemClock(); in datetime_best_possible()
|