This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2014年08月27日 10:51 by vstinner, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| clock_gettime.patch | vstinner, 2014年08月27日 10:51 | review | ||
| Messages (2) | |||
|---|---|---|---|
| msg225967 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2014年08月27日 10:51 | |
On UNIX, time.time() currently uses clock_gettime(), but _PyTime_gettimeofday() doesn't becauce pytime.c lacks a dependency on the librt module (needed on some platforms). Attached patch adds the dependency if needed and modify _PyTime_gettimeofday() to use clock_gettime() if available. The patch alone is not very useful. I wrote it to prepare the work for the issue #22043 (use a monotonic clock in Python modules written in C). With the patch, Python depends on the librt on Solaris and on Linux with glibc older than 2.17 (clock_gettime is now available directly in the libc since glibc 2.17). |
|||
| msg226062 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2014年08月29日 13:42 | |
New changeset 8e13ad4e5ae6 by Victor Stinner in branch 'default': Issue #22287: On UNIX, _PyTime_gettimeofday() now uses http://hg.python.org/cpython/rev/8e13ad4e5ae6 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:07 | admin | set | github: 66483 |
| 2014年08月29日 13:43:07 | vstinner | set | status: open -> closed resolution: fixed |
| 2014年08月29日 13:42:45 | python-dev | set | nosy:
+ python-dev messages: + msg226062 |
| 2014年08月27日 10:51:55 | vstinner | create | |