/third_party/python/Include/cpython/ |
H A D | pytime.h | 1 // The _PyTime_t API is written to use timestamp and timeout values stored in 4 // The _PyTime_t type is an integer to support directly common arithmetic 7 // The _PyTime_t API supports a resolution of 1 nanosecond. The _PyTime_t type 41 // value expressed in ticks with a frequency to _PyTime_t, like 56 /* _PyTime_t: Python timestamp with subsecond precision. It can be used to 59 typedef int64_t _PyTime_t; typedef 123 PyAPI_FUNC(_PyTime_t) _PyTime_FromSeconds(int seconds); 128 ((_PyTime_t)(seconds) * (1000 * 1000 * 1000)) 131 PyAPI_FUNC(_PyTime_t) _PyTime_FromNanosecond [all...] |
/third_party/python/Python/ |
H A D | pytime.c | 48 # error "_PyTime_t is not a two's complement integer type" 64 "timestamp too large to convert to C _PyTime_t"); in pytime_overflow() 68 static inline _PyTime_t 69 pytime_from_nanoseconds(_PyTime_t t) in pytime_from_nanoseconds() 71 // _PyTime_t is a number of nanoseconds in pytime_from_nanoseconds() 76 static inline _PyTime_t 77 pytime_as_nanoseconds(_PyTime_t t) in pytime_as_nanoseconds() 79 // _PyTime_t is a number of nanoseconds: see pytime_from_nanoseconds() in pytime_as_nanoseconds() 86 pytime_add(_PyTime_t *t1, _PyTime_t t [all...] |
H A D | thread_nt.h | 79 _PyTime_t nanoseconds = _PyTime_FromNanoseconds((_PyTime_t)milliseconds * 1000000); in EnterNonRecursiveMutex() 80 _PyTime_t deadline = _PyTime_Add(_PyTime_GetPerfCounter(), nanoseconds); in EnterNonRecursiveMutex() 82 _PyTime_t microseconds = _PyTime_AsMicroseconds(nanoseconds, in EnterNonRecursiveMutex()
|
H A D | thread_pthread.h | 443 _PyTime_t timeout; // relative timeout in PyThread_acquire_lock_timed() 445 _PyTime_t ns; in PyThread_acquire_lock_timed() 470 _PyTime_t deadline = _PyTime_Add(_PyTime_GetMonotonicClock(), timeout); in PyThread_acquire_lock_timed() 474 _PyTime_t deadline = 0; in PyThread_acquire_lock_timed() 486 _PyTime_t abs_time = _PyTime_Add(_PyTime_GetSystemClock(), in PyThread_acquire_lock_timed()
|
H A D | import.c | 1700 static _PyTime_t accumulated; in import_find_and_load() 1702 _PyTime_t t1 = 0, accumulated_copy = accumulated; in import_find_and_load() 1744 _PyTime_t cum = _PyTime_GetPerfCounter() - t1; in import_find_and_load()
|
/third_party/python/Modules/ |
H A D | timemodule.c | 66 static int pysleep(_PyTime_t timeout); 83 _PyFloat_FromPyTime(_PyTime_t t) in _PyFloat_FromPyTime() 91 get_system_time(_PyTime_t *t) in get_system_time() 101 _PyTime_t t; in time_time() 118 _PyTime_t t; in time_time_ns() 141 _PyTime_GetClockWithInfo(_PyTime_t *tp, _Py_clock_info_t *info) in _PyTime_GetClockWithInfo() 150 if ((_PyTime_t)CLOCKS_PER_SEC > _PyTime_MAX / SEC_TO_NS) { in _PyTime_GetClockWithInfo() 171 _PyTime_t ns = _PyTime_MulDiv(ticks, SEC_TO_NS, (_PyTime_t)CLOCKS_PER_SEC); in _PyTime_GetClockWithInfo() 224 _PyTime_t [all...] |
H A D | _lsprof.c | 18 _PyTime_t tt; 19 _PyTime_t it; 29 _PyTime_t tt; /* total time in this entry */ 30 _PyTime_t it; /* inline time in this entry (not in subcalls) */ 38 _PyTime_t t0; 39 _PyTime_t subt; 83 static _PyTime_t CallExternalTimer(ProfilerObject *pObj) in CallExternalTimer() 91 _PyTime_t result; in CallExternalTimer() 100 As the profiler works with _PyTime_t internally in CallExternalTimer() 112 static inline _PyTime_t [all...] |
H A D | _threadmodule.c | 82 acquire_timed(PyThread_type_lock lock, _PyTime_t timeout) in acquire_timed() 84 _PyTime_t endtime = 0; in acquire_timed() 91 _PyTime_t microseconds; in acquire_timed() 129 _PyTime_t *timeout) in lock_acquire_parse_args() 134 const _PyTime_t unset_timeout = _PyTime_FromSeconds(-1); in lock_acquire_parse_args() 160 _PyTime_t microseconds; in lock_acquire_parse_args() 175 _PyTime_t timeout; in lock_PyThread_acquire_lock() 357 _PyTime_t timeout; in rlock_acquire()
|
H A D | _queuemodule.c | 208 _PyTime_t endtime = 0; in _queue_SimpleQueue_get_impl() 209 _PyTime_t timeout; in _queue_SimpleQueue_get_impl()
|
H A D | socketmodule.h | 306 _PyTime_t sock_timeout; /* Operation timeout in seconds;
|
H A D | selectmodule.c | 278 _PyTime_t timeout, deadline = 0; in select_select_impl() 600 _PyTime_t timeout = -1, ms = -1, deadline = 0; in select_poll_poll_impl() 927 _PyTime_t timeout, ms, deadline = 0; in select_devpoll_poll_impl() 1540 _PyTime_t timeout = -1, ms = -1, deadline = 0; in select_epoll_poll_impl() 2119 _PyTime_t timeout, deadline = 0; in select_kqueue_control_impl()
|
H A D | socketmodule.c | 728 internal_select(PySocketSockObject *s, int writing, _PyTime_t interval, in internal_select() 734 _PyTime_t ms; in internal_select() 844 _PyTime_t timeout) in sock_call_ex() 847 _PyTime_t deadline = 0; in sock_call_ex() 861 _PyTime_t interval; in sock_call_ex() 979 static _PyTime_t defaulttimeout = _PYTIME_FROMSECONDS(-1); 2860 socket_parse_timeout(_PyTime_t *timeout, PyObject *timeout_obj) in socket_parse_timeout() 2866 _PyTime_t ms; in socket_parse_timeout() 2909 _PyTime_t timeout; in sock_settimeout() 4232 _PyTime_t timeou in sock_sendall() [all...] |
H A D | signalmodule.c | 207 _PyTime_t t; in timeval_from_double() 1256 _PyTime_t timeout; 1266 _PyTime_t deadline = _PyDeadline_Init(timeout);
|
H A D | faulthandler.c | 675 format_timeout(_PyTime_t us) in format_timeout() 708 _PyTime_t timeout, timeout_us; in faulthandler_dump_traceback_later()
|
H A D | _testcapimodule.c | 4807 _PyTime_t ts = _PyTime_FromSeconds(seconds); in test_pytime_fromseconds() 4822 _PyTime_t ts; in test_pytime_fromsecondsobject() 4836 _PyTime_t ts; in test_pytime_assecondsdouble() 4855 _PyTime_t t; in test_PyTime_AsTimeval() 4882 _PyTime_t t; in test_PyTime_AsTimeval_clamp() 4904 _PyTime_t t; in test_PyTime_AsTimespec() 4922 _PyTime_t t; in test_PyTime_AsTimespec_clamp() 4940 _PyTime_t t; in test_PyTime_AsMilliseconds() 4947 _PyTime_t ms = _PyTime_AsMilliseconds(t, round); in test_PyTime_AsMilliseconds() 4948 _PyTime_t n in test_PyTime_AsMilliseconds() [all...] |
H A D | _randommodule.c | 254 _PyTime_t now; in random_seed_time_pid()
|
H A D | _ssl.c | 362 static int PySSL_select(PySocketSockObject *s, int writing, _PyTime_t timeout); 936 _PyTime_t timeout, deadline = 0; in _ssl__SSLSocket_do_handshake_impl() 2260 PySSL_select(PySocketSockObject *s, int writing, _PyTime_t timeout) in PySSL_select() 2265 _PyTime_t ms; in PySSL_select() 2344 _PyTime_t timeout, deadline = 0; in _ssl__SSLSocket_write_impl() 2482 _PyTime_t timeout, deadline = 0; in _ssl__SSLSocket_read_impl() 2614 _PyTime_t timeout, deadline = 0; in _ssl__SSLSocket_shutdown_impl()
|
H A D | gcmodule.c | 1190 _PyTime_t t1 = 0; /* initialize to prevent a compiler warning */ in gc_collect_main()
|
H A D | _datetimemodule.c | 5123 _PyTime_t ts = _PyTime_GetSystemClock(); in datetime_best_possible()
|