]> granicus.if.org Git - python/commit
Issue #14428: Use the new time.perf_counter() and time.process_time() functions
authorVictor Stinner <victor.stinner@gmail.com>
Sun, 29 Apr 2012 01:01:20 +0000 (03:01 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Sun, 29 Apr 2012 01:01:20 +0000 (03:01 +0200)
commitfe98e2fc8391607fc1cae235a49bbafc65a822f0
treee00cb1f63634a8361ebd60c3a496a163e5d66c59
parent47620a661128ce91f46f01fb46e1326880365e75
Issue #14428: Use the new time.perf_counter() and time.process_time() functions

 * Replace "time.clock on windows, or time.time" with time.perf_counter()
 * profile module: only use time.process_time() instead of trying different
   functions providing the process time
 * timeit module: use time.perf_counter() by default, time.time() and
   time.clock() can still be used using --time and --clock options
 * pybench program: use time.perf_counter() by default, add support for
   the new time.process_time() and time.perf_counter() functions, but stay
   backward compatible. Use also time.get_clock_info() to display information
   of the timer.
Doc/includes/mp_benchmarks.py
Lib/idlelib/ColorDelegator.py
Lib/profile.py
Lib/test/reperf.py
Lib/test/sortperf.py
Lib/timeit.py
Tools/pybench/pybench.py