SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

72150 0 55 Python

bpo-31784: Implement PEP 564: add time.time_ns() (#3989)

Add new time functions:

* time.clock_gettime_ns()
* time.clock_settime_ns()
* time.monotonic_ns()
* time.perf_counter_ns()
* time.process_time_ns()
* time.time_ns()

Add new _PyTime functions:

* _PyTime_FromTimespec()
* _PyTime_FromNanosecondsObject()
* _PyTime_FromTimeval()

Other changes:

* Add also os.times() tests to test_os.
* pytime_fromtimeval() and pytime_fromtimeval() now return
  _PyTime_MAX or _PyTime_MIN on overflow, rather than undefined
  behaviour
* _PyTime_FromNanoseconds() parameter type changes from long long to
  _PyTime_t
V
Victor Stinner committed
c29b585fd4b5a91d17fc5dd41d86edff28a30da3
Parent: e314853
Committed by GitHub <noreply@github.com> on 11/2/2017, 2:28:27 PM