Show More
@@ -1953,8 +1953,10 b' Currently the magic system has the following functions:\\n"""' | |||
|
1953 | 1953 | |
|
1954 | 1954 | best = min(timer.repeat(repeat, number)) / number |
|
1955 | 1955 | |
|
1956 | if best > 0.0: | |
|
1956 | if best > 0.0 and best < 1000.0: | |
|
1957 | 1957 | order = min(-int(math.floor(math.log10(best)) // 3), 3) |
|
1958 | elif best >= 1000.0: | |
|
1959 | order = 0 | |
|
1958 | 1960 | else: |
|
1959 | 1961 | order = 3 |
|
1960 | 1962 | print u"%d loops, best of %d: %.*g %s per loop" % (number, repeat, |
General Comments 0
You need to be logged in to leave comments.
Login now