]> granicus.if.org Git - python/commit
Issue #22117: time.monotonic() now uses the new _PyTime_t API
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 27 Mar 2015 21:27:24 +0000 (22:27 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Fri, 27 Mar 2015 21:27:24 +0000 (22:27 +0100)
commit4bfb460d883bd224b61a0e7403a09ea093947890
tree7555350c57b3d6145b08dba3ef242d721d84413a
parent52d1493c0ccf04aed23f3db9a720ca24f2d19f13
Issue #22117: time.monotonic() now uses the new _PyTime_t API

* Add _PyTime_FromNanoseconds()
* Add _PyTime_AsSecondsDouble()
* Add unit tests for _PyTime_AsSecondsDouble()
Include/pytime.h
Lib/test/test_time.py
Modules/_testcapimodule.c
Modules/timemodule.c
Python/pytime.c