]> git.pld-linux.org Git - packages/python-greenlet.git/blame - python-greenlet-py3.8.patch
- updated to 1.1.3
[packages/python-greenlet.git] / python-greenlet-py3.8.patch
CommitLineData
4d60538c
JB
1--- greenlet-0.4.15/benchmarks/chain.py.orig 2016-12-11 00:52:06.000000000 +0100
2+++ greenlet-0.4.15/benchmarks/chain.py 2020-01-01 21:06:15.218260648 +0100
3@@ -5,7 +5,10 @@
4 """
5
6 import optparse
7-import time
8+try:
9+ from time import perf_counter
10+except:
11+ from time import clock as perf_counter
12
13 import greenlet
14
15@@ -34,6 +37,6 @@
16 if len(args) != 0:
17 p.error('unexpected arguments: %s' % ', '.join(args))
18
19- start_time = time.clock()
20+ start_time = perf_counter()
21 print 'Result:', chain(options.num_greenlets)
22- print time.clock() - start_time, 'seconds'
23+ print perf_counter() - start_time, 'seconds'
This page took 0.101945 seconds and 4 git commands to generate.