diff options
author | Victor Stinner <vstinner@python.org> | 2024-05-01 18:05:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 18:05:01 (GMT) |
commit | b52c753e0fb8b87c7a0e3f1c72acd18327d8d16b (patch) | |
tree | 0ffb22ddef0675046cd44d9aec0361b5fce0f4cd /Modules/socketmodule.h | |
parent | a8bcf3ec3284f042dab9cad676951092fb1f9890 (diff) | |
download | cpython-b52c753e0fb8b87c7a0e3f1c72acd18327d8d16b.zip cpython-b52c753e0fb8b87c7a0e3f1c72acd18327d8d16b.tar.gz cpython-b52c753e0fb8b87c7a0e3f1c72acd18327d8d16b.tar.bz2 |
gh-110850: Add PyTime_TimeRaw() function (#118394)
Add "Raw" variant of PyTime functions:
* PyTime_MonotonicRaw()
* PyTime_PerfCounterRaw()
* PyTime_TimeRaw()
Changes:
* Add documentation and tests. Tests release the GIL while calling
raw clock functions.
* py_get_system_clock() and py_get_monotonic_clock() now check that
the GIL is hold by the caller if raise_exc is non-zero.
* Reimplement "Unchecked" functions with raw clock functions.
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Diffstat (limited to 'Modules/socketmodule.h')
0 files changed, 0 insertions, 0 deletions