diff options
author | Victor Stinner <vstinner@python.org> | 2023-12-01 17:05:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-01 17:05:56 +0100 |
commit | 05a370abd6cdfe4b54be60b3b911f3a441026bb2 (patch) | |
tree | 09caae085de5a3a2f666f89f8d3ceec01faaad82 /Include/internal/pycore_runtime.h | |
parent | a9073564ee50bc610e1fd36e45b0a5204618883a (diff) | |
download | cpython-05a370abd6cdfe4b54be60b3b911f3a441026bb2.tar.gz cpython-05a370abd6cdfe4b54be60b3b911f3a441026bb2.zip |
gh-112567: Add _Py_GetTicksPerSecond() function (#112587)
* Move _PyRuntimeState.time to _posixstate.ticks_per_second and
time_module_state.ticks_per_second.
* Add time_module_state.clocks_per_second.
* Rename _PyTime_GetClockWithInfo() to py_clock().
* Rename _PyTime_GetProcessTimeWithInfo() to py_process_time().
* Add process_time_times() helper function, called by
py_process_time().
* os.times() is now always built: no longer rely on HAVE_TIMES.
Diffstat (limited to 'Include/internal/pycore_runtime.h')
-rw-r--r-- | Include/internal/pycore_runtime.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Include/internal/pycore_runtime.h b/Include/internal/pycore_runtime.h index e6efe8b646e..36743723f8a 100644 --- a/Include/internal/pycore_runtime.h +++ b/Include/internal/pycore_runtime.h @@ -21,7 +21,6 @@ extern "C" { #include "pycore_pymem.h" // struct _pymem_allocators #include "pycore_pythread.h" // struct _pythread_runtime_state #include "pycore_signal.h" // struct _signals_runtime_state -#include "pycore_time.h" // struct _time_runtime_state #include "pycore_tracemalloc.h" // struct _tracemalloc_runtime_state #include "pycore_typeobject.h" // struct _types_runtime_state #include "pycore_unicodeobject.h" // struct _Py_unicode_runtime_state @@ -205,7 +204,6 @@ typedef struct pyruntimestate { struct _pymem_allocators allocators; struct _obmalloc_global_state obmalloc; struct pyhash_runtime_state pyhash_state; - struct _time_runtime_state time; struct _pythread_runtime_state threads; struct _signals_runtime_state signals; |