homepage

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.

Author vstinner
Recipients loewis, neologix, vstinner
Date 2014年08月27日.10:51:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1409136715.28.0.0370137744033.issue22287@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2014年08月27日 10:51:55vstinnersetrecipients: + vstinner, loewis, neologix
2014年08月27日 10:51:55vstinnersetmessageid: <1409136715.28.0.0370137744033.issue22287@psf.upfronthosting.co.za>
2014年08月27日 10:51:55vstinnerlinkissue22287 messages
2014年08月27日 10:51:55vstinnercreate

AltStyle によって変換されたページ (->オリジナル) /