Home
last modified time | relevance | path

Searched refs:_PyTime_t (Results 1 – 20 of 20) sorted by relevance

/third_party/python/Include/cpython/
Dpytime.h16 typedef int64_t _PyTime_t; typedef
77 PyAPI_FUNC(_PyTime_t) _PyTime_FromSeconds(int seconds);
82 ((_PyTime_t)(seconds) * (1000 * 1000 * 1000))
85 PyAPI_FUNC(_PyTime_t) _PyTime_FromNanoseconds(_PyTime_t ns);
88 PyAPI_FUNC(int) _PyTime_FromNanosecondsObject(_PyTime_t *t,
93 PyAPI_FUNC(int) _PyTime_FromSecondsObject(_PyTime_t *t,
99 PyAPI_FUNC(int) _PyTime_FromMillisecondsObject(_PyTime_t *t,
104 PyAPI_FUNC(double) _PyTime_AsSecondsDouble(_PyTime_t t);
107 PyAPI_FUNC(_PyTime_t) _PyTime_AsMilliseconds(_PyTime_t t,
111 PyAPI_FUNC(_PyTime_t) _PyTime_AsMicroseconds(_PyTime_t t,
[all …]
/third_party/python/Python/
Dpytime.c18 (_PyTime_t)(a) < _PyTime_MIN / (_PyTime_t)(b) \
19 || _PyTime_MAX / (_PyTime_t)(b) < (_PyTime_t)(a))
52 _PyTime_t
53 _PyTime_MulDiv(_PyTime_t ticks, _PyTime_t mul, _PyTime_t div) in _PyTime_MulDiv()
55 _PyTime_t intpart, remaining; in _PyTime_MulDiv()
243 _PyTime_t
246 _PyTime_t t; in _PyTime_FromSeconds()
253 t = (_PyTime_t)seconds; in _PyTime_FromSeconds()
260 _PyTime_t
261 _PyTime_FromNanoseconds(_PyTime_t ns) in _PyTime_FromNanoseconds()
[all …]
Dthread_nt.h79 _PyTime_t now = _PyTime_GetPerfCounter(); in EnterNonRecursiveMutex()
83 _PyTime_t nanoseconds = _PyTime_FromNanoseconds((_PyTime_t)milliseconds * 1000000); in EnterNonRecursiveMutex()
84 _PyTime_t target = now + nanoseconds; in EnterNonRecursiveMutex()
86 _PyTime_t microseconds = _PyTime_AsMicroseconds(nanoseconds, _PyTime_ROUND_TIMEOUT); in EnterNonRecursiveMutex()
Dthread_pthread.h447 _PyTime_t deadline = 0; in PyThread_acquire_lock_timed()
467 _PyTime_t timeout = _PyTime_FromNanoseconds(microseconds * 1000); in PyThread_acquire_lock_timed()
500 _PyTime_t dt = deadline - _PyTime_GetMonotonicClock(); in PyThread_acquire_lock_timed()
506 _PyTime_t realtime_deadline = _PyTime_GetSystemClock() + dt; in PyThread_acquire_lock_timed()
Dimport.c1485 static _PyTime_t accumulated; in import_find_and_load()
1487 _PyTime_t t1 = 0, accumulated_copy = accumulated; in import_find_and_load()
1530 _PyTime_t cum = _PyTime_GetPerfCounter() - t1; in import_find_and_load()
/third_party/python/Modules/
Dtimemodule.c66 static int pysleep(_PyTime_t);
70 _PyFloat_FromPyTime(_PyTime_t t) in _PyFloat_FromPyTime()
78 get_system_time(_PyTime_t *t) in get_system_time()
88 _PyTime_t t; in time_time()
105 _PyTime_t t; in time_time_ns()
128 _PyTime_GetClockWithInfo(_PyTime_t *tp, _Py_clock_info_t *info) in _PyTime_GetClockWithInfo()
138 if ((_PyTime_t)CLOCKS_PER_SEC > _PyTime_MAX / SEC_TO_NS) { in _PyTime_GetClockWithInfo()
159 *tp = _PyTime_MulDiv(ticks, SEC_TO_NS, (_PyTime_t)CLOCKS_PER_SEC); in _PyTime_GetClockWithInfo()
211 _PyTime_t t;
240 _PyTime_t t;
[all …]
D_lsprof.c12 _PyTime_t tt;
13 _PyTime_t it;
23 _PyTime_t tt; /* total time in this entry */
24 _PyTime_t it; /* inline time in this entry (not in subcalls) */
32 _PyTime_t t0;
33 _PyTime_t subt;
77 static _PyTime_t CallExternalTimer(ProfilerObject *pObj) in CallExternalTimer()
85 _PyTime_t result; in CallExternalTimer()
106 static inline _PyTime_t
306 _PyTime_t tt = call_timer(pObj) - self->t0; in Stop()
[all …]
D_threadmodule.c85 acquire_timed(PyThread_type_lock lock, _PyTime_t timeout) in acquire_timed()
88 _PyTime_t endtime = 0; in acquire_timed()
95 _PyTime_t microseconds; in acquire_timed()
133 _PyTime_t *timeout) in lock_acquire_parse_args()
138 const _PyTime_t unset_timeout = _PyTime_FromSeconds(-1); in lock_acquire_parse_args()
164 _PyTime_t microseconds; in lock_acquire_parse_args()
179 _PyTime_t timeout; in lock_PyThread_acquire_lock()
360 _PyTime_t timeout; in rlock_acquire()
1644 double timeout_max = (_PyTime_t)PY_TIMEOUT_MAX * 1e-6; in thread_module_exec()
D_queuemodule.c204 _PyTime_t endtime = 0; in _queue_SimpleQueue_get_impl()
205 _PyTime_t timeout_val; in _queue_SimpleQueue_get_impl()
Dsocketmodule.h291 _PyTime_t sock_timeout; /* Operation timeout in seconds;
Dselectmodule.c268 _PyTime_t timeout, deadline = 0; in select_select_impl()
582 _PyTime_t timeout = -1, ms = -1, deadline = 0; in select_poll_poll_impl()
907 _PyTime_t timeout, ms, deadline = 0; in select_devpoll_poll_impl()
1519 _PyTime_t timeout = -1, ms = -1, deadline = 0; in select_epoll_poll_impl()
2098 _PyTime_t timeout, deadline = 0; in select_kqueue_control_impl()
Dsocketmodule.c706 internal_select(PySocketSockObject *s, int writing, _PyTime_t interval, in internal_select()
712 _PyTime_t ms; in internal_select()
822 _PyTime_t timeout) in sock_call_ex()
825 _PyTime_t deadline = 0; in sock_call_ex()
839 _PyTime_t interval; in sock_call_ex()
955 static _PyTime_t defaulttimeout = _PYTIME_FROMSECONDS(-1);
2819 socket_parse_timeout(_PyTime_t *timeout, PyObject *timeout_obj) in socket_parse_timeout()
2825 _PyTime_t ms; in socket_parse_timeout()
2868 _PyTime_t timeout; in sock_settimeout()
4179 _PyTime_t interval = s->sock_timeout; in sock_sendall()
[all …]
Dfaulthandler.c656 format_timeout(_PyTime_t us) in format_timeout()
689 _PyTime_t timeout, timeout_us; in faulthandler_dump_traceback_later()
Dsignalmodule.c188 _PyTime_t t; in timeval_from_double()
1232 _PyTime_t timeout, deadline, monotonic;
D_randommodule.c250 _PyTime_t now; in random_seed_time_pid()
D_ssl.c364 static int PySSL_select(PySocketSockObject *s, int writing, _PyTime_t timeout);
932 _PyTime_t timeout, deadline = 0; in _ssl__SSLSocket_do_handshake_impl()
2223 PySSL_select(PySocketSockObject *s, int writing, _PyTime_t timeout) in PySSL_select()
2228 _PyTime_t ms; in PySSL_select()
2307 _PyTime_t timeout, deadline = 0; in _ssl__SSLSocket_write_impl()
2443 _PyTime_t timeout, deadline = 0; in _ssl__SSLSocket_read_impl()
2574 _PyTime_t timeout, deadline = 0; in _ssl__SSLSocket_shutdown_impl()
D_testcapimodule.c4607 _PyTime_t ts; in test_pytime_fromseconds()
4620 _PyTime_t ts; in test_pytime_fromsecondsobject()
4635 _PyTime_t ts; in test_pytime_assecondsdouble()
4653 _PyTime_t t; in test_PyTime_AsTimeval()
4681 _PyTime_t t; in test_PyTime_AsTimespec()
4702 _PyTime_t t, ms; in test_PyTime_AsMilliseconds()
4724 _PyTime_t t, ms; in test_PyTime_AsMicroseconds()
Dgcmodule.c1195 _PyTime_t t1 = 0; /* initialize to prevent a compiler warning */ in gc_collect_main()
D_datetimemodule.c5052 _PyTime_t ts = _PyTime_GetSystemClock(); in datetime_best_possible()
/third_party/python/Tools/c-analyzer/
DTODO76 Python/import.c:import_find_and_load():accumulated static _PyTime_t accumulated