Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-112567: Add _Py_GetTicksPerSecond() function #112587

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Dec 1, 2023

  • 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
30 checks passed
@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