cpython/Misc/NEWS.d/next/Library/2018-12-16-23-28-49.bpo-355...

5 lines
257 B
ReStructuredText

:class:`~unittest.runner.TextTestRunner` of :mod:`unittest.runner` now uses
:func:`time.perf_counter` rather than :func:`time.time` to measure the
execution time of a test: :func:`time.time` can go backwards, whereas
:func:`time.perf_counter` is monotonic.