Skip to content

gh-112567: Add _Py_GetTicksPerSecond() function#112587

Merged
vstinner merged 2 commits into
python:mainfrom
vstinner:ticks_per_second
Dec 1, 2023
Merged

gh-112567: Add _Py_GetTicksPerSecond() function#112587
vstinner merged 2 commits into
python:mainfrom
vstinner:ticks_per_second

Conversation

@vstinner

@vstinner vstinner commented Dec 1, 2023

Copy link
Copy Markdown
Member
  • Move _PyRuntimeState.time to _posixstate.ticks_per_second and time_module_state.ticks_per_second.
  • Add time_module_state.clocks_per_second.
  • Add process_time_times() helper function, called by _PyTime_GetProcessTimeWithInfo().
  • Rename _PyTime_GetClockWithInfo() to py_clock().
  • Rename _PyTime_GetProcessTimeWithInfo() to py_process_time().
  • os.times() is now always built: no longer rely on HAVE_TIMES.

* Move _PyRuntimeState.time to _posixstate.ticks_per_second and
  time_module_state.ticks_per_second.
* Add time_module_state.clocks_per_second.
* Add process_time_times() helper function, called by
  _PyTime_GetProcessTimeWithInfo().
* Rename _PyTime_GetClockWithInfo() to py_clock().
* Rename _PyTime_GetProcessTimeWithInfo() to py_process_time().
* os.times() is now always built: no longer rely on HAVE_TIMES.
@vstinner vstinner merged commit 05a370a into python:main Dec 1, 2023
@vstinner vstinner deleted the ticks_per_second branch December 1, 2023 16:05
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
* 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.
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant