aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-12-01 17:05:56 +0100
committerGitHub <noreply@github.com>2023-12-01 17:05:56 +0100
commit05a370abd6cdfe4b54be60b3b911f3a441026bb2 (patch)
tree09caae085de5a3a2f666f89f8d3ceec01faaad82 /Python/pylifecycle.c
parenta9073564ee50bc610e1fd36e45b0a5204618883a (diff)
downloadcpython-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 'Python/pylifecycle.c')
-rw-r--r--Python/pylifecycle.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index aff67d7a835..95a72eb4704 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -528,11 +528,6 @@ pycore_init_runtime(_PyRuntimeState *runtime,
return status;
}
- status = _PyTime_Init();
- if (_PyStatus_EXCEPTION(status)) {
- return status;
- }
-
status = _PyImport_Init();
if (_PyStatus_EXCEPTION(status)) {
return status;