]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-112567: Add _Py_GetTicksPerSecond() function (#112587)
authorVictor Stinner <vstinner@python.org>
Fri, 1 Dec 2023 16:05:56 +0000 (17:05 +0100)
committerGitHub <noreply@github.com>
Fri, 1 Dec 2023 16:05:56 +0000 (17:05 +0100)
commit05a370abd6cdfe4b54be60b3b911f3a441026bb2
tree09caae085de5a3a2f666f89f8d3ceec01faaad82
parenta9073564ee50bc610e1fd36e45b0a5204618883a
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.
Include/internal/pycore_fileutils.h
Include/internal/pycore_pylifecycle.h
Include/internal/pycore_runtime.h
Include/internal/pycore_time.h
Modules/clinic/posixmodule.c.h
Modules/posixmodule.c
Modules/timemodule.c
Python/fileutils.c
Python/pylifecycle.c