Serhiy Storchaka added the comment: Implemented Robert's suggestion.
$ ./python -m timeit -n1 -r 10 -s "import time, random" -- "time.sleep(random.random())" 1 loops, best of 10: 30.2 msec per loop :0: UserWarning: The test results are likely unreliable. The worst time (946 msec) was more than four times slower than the best time. ---------- Added file: http://bugs.python.org/file38533/timeit_python_warning_2.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23552> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com