Skip to content

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
@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